On 6/24/20, Greg 'groggy' Lehey <g...@freebsd.org> wrote:
> On Wednesday, 24 June 2020 at 18:51:04 -0700, Donald Wilde wrote:
>> On 6/24/20, Greg 'groggy' Lehey <g...@freebsd.org> wrote:
>>> On Wednesday, 24 June 2020 at  9:36:23 -0700, Donald Wilde wrote:
>>>> All,
>>>>
>>>> I recently upgraded my 12-STABLE system to the latest, and now my
>>>> swap subsystems aren't working. I deliberately set up a 40GB
>>>> partition for swap, and when I do 'top -t' I am only seeing 7906M
>>>> total.
>>>
>>> That looks suspiciously like the difference from 32 GB.  Could it be
>>> numeric overflow?  And if so, where?  What does pstat -s say?
>>
>> Well, hi Greg! LTNT2!
>
> Indeed.
>
>> pstat -shm:
>>
>> /dev/ada0s1b  65536 (1M blocks), Used: 1.5G, Avail: 63G, Capacity: 2%
>
> Now that's really puzzling.  Why does it say 64 G when you said 40 G,
> and the error from top tends to confirm it?  How big is the partition
> (gpart output)?

Attached 'gpart list' output

Reduced kern.maxswzone to 9999999. Is it decimal or unlabeled hex?

'top' now shows 4597M total swap.

>
>>>> When using synth, it shows swap usage of < 2%, but then it gives the
>>>> 'out of swap' complaint and tosses all my users out into neverland.
>>>
>>> Unless this also causes kernel messages to that effect, this, too,
>>> could be an issue with synth.
>>
>> I believe the messages about 'out of swap' were from the kernel as
>> it died, not synth. As I say, it killed all my active users, both
>> root and non-root.

Okay, I've now got data on that. It crashed again. :-\

First, the kernel killed init-spawned PIDs up into the 12000s: 'out of
swap space'.

Next, I get the following 5 times, boldface (this is console, not a GUI):

swblk zone ok
swap blk zone exhausted, increase kern.maxswzone

Back to normal font, the kernel killed four cron-job PIDs, 'out of swap space'

At this point, if I hit a <cr>, I get a login prompt.

>
> Hmm.
>
>> Why does _top_ show the 7906M number? I suspect that it's deeper
>> than just synth.
>
> If top counts swap in a form that overflows at 32 GB, 40 GB could show
> up as 8 GB.
>
>> What else can I share to help diagnose this?
>
> Background, maybe?  You say that you upgraded your system.  Did you
> change the swap size when you did?  What were swap and RAM sizes
> before and after?

Meant that I upgraded from 12.1-RELEASE to 12-STABLE. When I
configured the -RELEASE install, I manually messed with the MBR disk
partitions. This is nominally a half-TB HDD which showed up as a total
of 446 G available (IIRC, gpart should show it's actual size). I did
auto partitioning, looked at the sizes, and manually set my partitions
to give me 40G of swap instead of the auto-generated size of 4G.

This is an old Dell i3 laptop. It's really generic, picked
specifically as something I could use for Ubuntu or FreeBSD. Dell
SERVICE TAG is 5K8W162, but it's a generic i3 with 4G of RAM.

I'm developing a multi-server application for my cousin, so I'm using
this as a mule to work my way through some of the issues involved in
that project, from FreeBSD itself through NGINX and Lua, etc.
>
> FWIW, I've had a very large number of issues with -STABLE in recent
> months, though not this one.  I should send a separate message.
>
I guess I've been fortunate, then. Most of my issues have been with
re-learning FreeBSD. :D
-- 
Don Wilde
****************************************************
* What is the Internet of Things but a system *
* of systems including humans?                     *
****************************************************
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 976773167
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada0s1
   Mediasize: 500107829248 (466G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e3
   efimedia: HD(1,MBR,0x90909090,0x40,0x3a385ff0)
   attrib: active
   rawtype: 165
   length: 500107829248
   offset: 32768
   type: freebsd
   index: 1
   end: 976773167
   start: 64
Consumers:
1. Name: ada0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e5

Geom name: ada0s1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 976773103
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada0s1a
   Mediasize: 429496729600 (400G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   rawtype: 7
   length: 429496729600
   offset: 0
   type: freebsd-ufs
   index: 1
   end: 838860799
   start: 0
2. Name: ada0s1b
   Mediasize: 70611099648 (66G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e0
   rawtype: 1
   length: 70611099648
   offset: 429496729600
   type: freebsd-swap
   index: 2
   end: 976773103
   start: 838860800
Consumers:
1. Name: ada0s1
   Mediasize: 500107829248 (466G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e3

_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to