Re: More memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if it is not installed, dnf install earlyoom.

On Tue, Jan 11, 2022 at 4:04 PM Roger Heflin <rogerheflin@xxxxxxxxx> wrote:
>
> You can go into the firefox about:config and reduce the number of
> threads to less.  Too many threads seem to make the ram creep worse.
>
> ps axuww | sort -k 6n
>
> I have earlyoom taking care of killing as needed.
>
> in /etc/default/earlyoom I have this set:
> EARLYOOM_ARGS="-s 90,90 -r 300 -m 2 --prefer '^Web Content$' --avoid
> '^(dnf|packagekitd|gnome-shell|gnome-session-c|gnome-session-b|lightdm|sddm|sddm-helper|gdm|gdm-wayland-ses|gdm-session-wor|gdm-x-session|Xorg|Xwayland|systemd|systemd-logind|dbus-daemon|dbus-broker|cinnamon|cinnamon-sessio|kwin_x11|kwin_wayland|plasmashell|ksmserver|plasma_session|startplasma-way|xfce4-session|mate-session|marco|lxqt-session|openbox)$'"
>
>
> I probably need to increase the swap free (90% free required) to say
> 95% so basically the killing starts if it starts to swap.
>
> On Tue, Jan 11, 2022 at 3:56 PM Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
> >
> > I have 18 instances of Firefox running.  All with multiple tabs for
> > different projects.  I use top a lot, but only with defaults and don't
> > see from the manpage how to sort by RSS.  Here is a 'simple' copy of top:
> >
> > Tasks: 266 total,   2 running, 264 sleeping,   0 stopped,   0 zombie
> > %Cpu(s): 17.4 us,  9.2 sy,  0.0 ni, 72.0 id,  0.0 wa,  1.2 hi, 0.2 si,
> > 0.0 st
> > MiB Mem :   7207.7 total,    678.7 free,   6235.8 used,    293.1 buff/cache
> > MiB Swap:  23591.0 total,  17723.1 free,   5867.9 used.    680.5 avail Mem
> >
> >      PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM TIME+ COMMAND
> >   311428 rgm       20   0 4472108 282892  52312 S  32.3   3.8 83:11.00
> > GeckoMain
> >   318444 rgm       20   0 2484192  42284  31188 S  11.6   0.6 4:15.29
> > Isolated Web +
> >      995 root      20   0  978020  47764  17620 R  10.2   0.6 930:38.94
> > Xorg
> >     1561 rgm       20   0  193304  16100   2216 S   8.3   0.2 1072:30
> > pipewire-pulse
> >      124 root      20   0       0      0      0 S   4.6   0.0 201:38.20
> > kswapd0
> >     1559 rgm       20   0  131104   4572   2312 S   4.6   0.1 590:18.02
> > pipewire
> >   311165 rgm       20   0 4433824 204088  30632 S   4.6   2.8 20:55.96
> > thunderbird
> >     1359 rgm       20   0 1223972  16700   9748 S   4.0   0.2 75:50.16
> > xfwm4
> >   315376 rgm       20   0 2732856 133556  27256 S   4.0   1.8 6:08.20
> > Isolated Web +
> >       38 root      20   0       0      0      0 S   3.6   0.0 62:49.14
> > kcompactd0
> >   312140 rgm       20   0 2488436  19196  13760 S   2.6   0.3 6:47.73
> > Isolated Web +
> >   311727 rgm       20   0 2567436  74584  13952 S   2.3   1.0 7:45.49
> > Isolated Web +
> >   316664 rgm       20   0 2696948  64788  15756 S   1.7   0.9 1:52.87
> > Isolated Web +
> >   311949 rgm       20   0 2794036  86796  18400 S   1.3   1.2 4:34.23
> > Isolated Web +
> >   313216 rgm       20   0 2708484  77072  16160 S   1.3   1.0 7:06.57
> > Isolated Web +
> >   318480 rgm       20   0 2633452  19660  14432 S   1.3   0.3 0:34.27
> > Isolated Web +
> >   319746 rgm       20   0   10612   4196   3324 R   1.3   0.1 0:00.11 top
> >
> > In a couple days, I will see the swap usage grow.  Until I Quit firefox,
> > then restart with all the old windows opening.
> >
> > But I really never exit Firefox unless forced to.
> >
> > On 1/11/22 16:33, John Mellor wrote:
> > > What on earth are you doing in Firefox and Thunderbird to use that
> > > swap? I have multiple 8GB machines running the same Fedora, Firefox
> > > and Thunderbird, and virtually never get into swap at all.  Two the
> > > these machines are also Lenovo.  This makes no sense, so there must be
> > > something else hogging all that memory. Do a top and sort by RSS and
> > > see what the real problem app is.
> > >
> > > --
> > >
> > > John Mellor
> > >
> > >
> > > On 2022-01-11 12:30 p.m., Robert Moskowitz wrote:
> > >> The specs for my Lenovo x140e is 8GB, which I have and it seems to be
> > >> not enough.
> > >>
> > >> $ free
> > >>                total        used        free      shared buff/cache
> > >> available
> > >> Mem:         7380668     6930852      262676        1492 187140
> > >> 221144
> > >> Swap:       24157176    12044096    12113080
> > >>
> > >>
> > >> Firefox seems to be a bit part of the problem.   I quit it and see:
> > >>
> > >> $ free
> > >>                total        used        free      shared buff/cache
> > >> available
> > >> Mem:         7380668     5146100     1776840        1364 457728
> > >> 1948864
> > >> Swap:       24157176     5270956    18886220
> > >>
> > >> I am running a VM at 2Gb and a couple of Thunderbird sessions.
> > >> Closing these TB and waiting a while I drop down to
> > >>
> > >> $ free
> > >>                total        used        free      shared buff/cache
> > >> available
> > >> Mem:         7380668     3751784     1148396       16228 2480488
> > >> 3272716
> > >> Swap:       24157176     2422956    21734220
> > >>
> > >>
> > >> but really the bottom line is I need more memory for the tasks at
> > >> hand.  Firefox has all these weird processes running eating up lots
> > >> of memory and swapping like crazy.  Probably bad for my SSD drive.
> > >>
> > >> So how to get to 16GB memory?
> > >>
> > >> What follows the x140e in the 12" format?  I can't figure this out
> > >> from basic Lenovo sales stuff.  Probably going to have to find a
> > >> Lenovo forum to get the info.
> > >>
> > >> But CompuRAM in UK says they can support up to 32GB on the x140e
> > >> using "newer SO-DIMM chips".  Crucial only sells 4GB for the x140e.
> > >>
> > >> Anyone have any knowledge on this?  Other than booting and getting
> > >> into settings, how do I figure out my bios version?  And to see if
> > >> Lenovo has a newer one that probably CompuRAM is counting on?
> > >>
> > >> Any US memory sources that will support more memory for the x140e? I
> > >> really don't want to deal with overseas shipping and support.
> > >>
> > >> And back to the "newer" hardware question on 140 followon.
> > >>
> > >> thanks for any input.  All this swapping is taking time when I really
> > >> have to wait for the system to bring in what is needed and things to
> > >> start working.
> > >>
> > >> _______________________________________________
> > >> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > >> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > >> Fedora Code of Conduct:
> > >> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > >> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > >> List Archives:
> > >> https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> > >> Do not reply to spam on the list, report it:
> > >> https://pagure.io/fedora-infrastructure
> > > _______________________________________________
> > > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > > Fedora Code of Conduct:
> > > https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > > List Archives:
> > > https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> > > Do not reply to spam on the list, report it:
> > > https://pagure.io/fedora-infrastructure
> > _______________________________________________
> > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> > Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux