Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243841

Re: Bullseye default swap partition size?

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Bullseye default swap partition size?
Date 2022-01-09 18:30 +0100
Message-ID <DDKaZ-38V-1@gated-at.bofh.it> (permalink)
References <DDnep-5s5-3@gated-at.bofh.it> <DDnxM-5Qd-23@gated-at.bofh.it> <DDpzA-714-13@gated-at.bofh.it> <DDqvH-7Dq-3@gated-at.bofh.it> <DDDsS-7zx-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 09 Jan 2022 at 10:14:41 (+0000), Tixy wrote:
> On Sat, 2022-01-08 at 14:24 -0600, David Wright wrote:
> [...]
> > the alternative is running out of memory, and the OOM killer.
> > Obviously I don't know what you run that clogs the system. Most of my
> > machines have much less RAM than the two mentioned, though they get
> > less memory-intensive use nowadays. Maybe the difference is that
> > I don't install any DEs here.
> 
> I've always used a DE and no swap, at the moment it's using 850MiB of
> RAM running an email program and Firefox with one page open. Opening 10
> tabs in Firefox and a music player to get a realistic higher limit of
> memory usage and it jumps to 1.5GiB. That still leaves several GiB for
> disk caches.

Yes, that's obviously a very busy machine.

I just checked the memory use on this desktop after seeing your post
this morning. It has 22 xterms open in fvwm, and there are two remote
ssh logins from my laptop (whence I woke up this desktop). There are
two mutt instances (one reading, one composing this). That all uses:

top - 09:10:40 up 29 min, 22 users,  load average: 0.01, 0.02, 0.00
Tasks: 196 total,   1 running, 195 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  0.2 sy,  0.0 ni, 99.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   7921.6 total,   6472.6 free,    560.2 used,    888.8 buff/cache
MiB Swap:    499.0 total,    499.0 free,      0.0 used.   7063.2 avail Mem 

as a baseline. Then I launched FF, which puts up a weather forecast
for the week. I closed that, and clicked on Restore Tabs, which
displays the last page from my previous session yesterday:

top - 09:13:55 up 33 min, 22 users,  load average: 0.17, 0.14, 0.05
Tasks: 203 total,   1 running, 202 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.8 us,  0.0 sy,  0.0 ni, 99.2 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   7921.6 total,   5856.2 free,    897.8 used,   1167.7 buff/cache
MiB Swap:    499.0 total,    499.0 free,      0.0 used.   6698.4 avail Mem 

I then rotated through the 194 FF tabs, to produce:

top - 09:22:30 up 41 min, 22 users,  load average: 1.76, 1.51, 0.78
Tasks: 208 total,   1 running, 207 sleeping,   0 stopped,   0 zombie
%Cpu(s):  6.2 us,  2.1 sy,  0.0 ni, 75.3 id, 16.4 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   7921.6 total,   1641.6 free,   4750.1 used,   1529.8 buff/cache
MiB Swap:    499.0 total,    499.0 free,      0.0 used.   2737.5 avail Mem 

These tabs would mostly be ad and video free, rather than the sites
like newspapers that have multiple videos running (I close those
as soon as I've looked at them).

As you can see, the token swap is untouched, and sits there like a
spare can of petrol in the boot, pretty much whatever normal work
I do. With 6 and 8GB more on two other machines, swap is rather
wasteful, particularly with the SSD one.

To the OP, I would just say that it's impossible for the d-i to
guess which camp you fit into, big swap or small, so if you don't
like what it chooses, you just have to change it yourself. If you
don't do that, then you can always set up a swap /file/ instead.

"Obviously I don't know what you run that clogs the system" (above)
contained a grain of untruth—I know that Cindy Sue uses tabs a lot,
and with different browsers, so I just looked back to find 730+ in
https://lists.debian.org/debian-user/2018/10/msg00416.html

OTOH I use FF on an old laptop, and limit myself to three tabs.
It has 500GB memory and 1GB swap. It churns like hell, and can
take a minute to open a page. Without swap, it just freezes up.
So on thet, it's essential.

(Both machines running buster, which could well be the Final OS
for the old laptop.)

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bullseye default swap partition size? conover@rahul.net (John Conover) - 2022-01-08 18:00 +0100
  Re: Bullseye default swap partition size? Georgi Naplatanov <gosho@oles.biz> - 2022-01-08 18:20 +0100
    Re: Bullseye default swap partition size? Tixy <tixy@yxit.co.uk> - 2022-01-08 18:40 +0100
      Re: Bullseye default swap partition size? Georgi Naplatanov <gosho@oles.biz> - 2022-01-09 17:30 +0100
        Re: Bullseye default swap partition size? Tixy <tixy@yxit.co.uk> - 2022-01-09 18:50 +0100
          Re: Bullseye default swap partition size? Hans <hans.ullrich@loop.de> - 2022-01-09 19:10 +0100
            Re: Bullseye default swap partition size? Peter Ehlert <pb21a@sdi-baja.com> - 2022-01-09 21:10 +0100
            Re: Bullseye default swap partition size? Charlie <taoquester@gmail.com> - 2022-01-09 22:40 +0100
    Re: Bullseye default swap partition size? Cindy Sue Causey <butterflybytes@gmail.com> - 2022-01-08 20:30 +0100
      Re: Bullseye default swap partition size? David Wright <deblis@lionunicorn.co.uk> - 2022-01-08 21:30 +0100
        Re: Bullseye default swap partition size? Tixy <tixy@yxit.co.uk> - 2022-01-09 11:20 +0100
          Re: Bullseye default swap partition size? David Wright <deblis@lionunicorn.co.uk> - 2022-01-09 18:30 +0100
  Re: Bullseye default swap partition size? "Andrew M.A. Cater" <amacater@einval.com> - 2022-01-09 17:30 +0100
    Re: Bullseye default swap partition size? conover@rahul.net (John Conover) - 2022-01-09 18:00 +0100
      Re: Bullseye default swap partition size? Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-15 20:10 +0100
  Re: Bullseye default swap partition size? Marco Möller <talby@debianlists.mobilxpress.net> - 2022-01-09 22:30 +0100
    Re: Bullseye default swap partition size? Charles Curley <charlescurley@charlescurley.com> - 2022-01-10 00:30 +0100
      Re: Bullseye default swap partition size? Peter Ehlert <pb21a@sdi-baja.com> - 2022-01-10 00:40 +0100

csiph-web