Re: Linux doesn't seem to manage memory very well

Liste des GroupesRevenir à col misc 
Sujet : Re: Linux doesn't seem to manage memory very well
De : not (at) *nospam* telling.you.invalid (Computer Nerd Kev)
Groupes : comp.os.linux.misc
Date : 04. May 2024, 01:13:26
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <66357da6@news.ausics.net>
References : 1 2 3 4 5 6 7 8
User-Agent : tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
Carlos E.R. <robin_listas@es.invalid> wrote:
On 2024-05-03 01:23, Computer Nerd Kev wrote:
 
The OP has noted now that the process that consumes their RAM is
Chrome or Firefox. I've not seen a detailed description of why it
happens, but I've long noted that Firefox seems to expand its RAM
usage to the available space, but different from a memory leak in
that it usually leaves a certain amount free. I assume that this
in intended behaviour. I run current Firefox on a PC with 2GB RAM
and I don't have it getting killed by the kernel, nor do I have
problems with kernel crashes/reboots. I've also tried running
recent Firefox on a PC with 512MB RAM and noticed that it performs
much worse than with 2GB RAM, slowing down to a crawl while loading
some websites, suggesting that it really does need more RAM in that
case.
 
Firefox uses a lot of memory.
 
One problem is memory fragmentation. It reserves many chunks then
eventually frees many, but they may not being contiguous, so maybe they
can not be reused, so it requests more memory.

It seems to me like it looks at the available RAM (not including
swap space) and only works at freeing space when the free RAM
remaining gets to a certain size/percentage. Increading RAM because
one feels there isn't enough space free therefore isn't really a
solution because Firefox will eventually expand to fill that new
space too. Although if it tries to leave a minimum percentage free,
the size of that minimum would increase.

But it would be great to see an explanation of how it really works
from one of the Firefox developers (one can dream).

When I started using Linux, back in 1998, I did notice that Linux needed
more memory than Windows to work right.

It did compared to mid-90s Windows. With XP and later the
difference switched the other way and it surprises me how much more
RAM Windows 10 can use doing nothing compared to ~100MB used after
modern Linux boots up with to a lightweight desktop. Older Linux
used much RAM less than that, but still more than a basic Win98
installation (the old PC I'm posting from with 80MB RAM dual-boots
to either).

I had to improve my hardware
because of that. My previous computer had 8 GB and it was not enough, it
was swapping. So now I have a machine with 64.

I wouldn't know what to do with 8GB (well I know some people like
to run lots of VMs, but that's too much to think about in my
opinion).

I don't use web browsers to play video.
 
No youtube? :-)

Only with youtube-dl (yes I know there's also the yt-dlp fork). To
find videos there I also avoid their Javascript-filled website and
use Invidious as well as "site:youtube.com" in DuckDuckGo.

--
__          __
#_ < |\| |< _#

Date Sujet#  Auteur
1 May 24 * Linux doesn't seem to manage memory very well67James Harris
1 May 24 +* Re: Linux doesn't seem to manage memory very well6Marc Haber
2 May 24 i`* Re: Linux doesn't seem to manage memory very well5James Harris
2 May 24 i +* Re: Linux doesn't seem to manage memory very well3Marc Haber
2 May 24 i i`* Re: Linux doesn't seem to manage memory very well2Rich
2 May 24 i i `- Re: Linux doesn't seem to manage memory very well1Marc Haber
3 May 24 i `- Re: Linux user doesn't seem to manage memory very well1Lawrence D'Oliveiro
1 May 24 +* Re: Linux doesn't seem to manage memory very well6The Natural Philosopher
1 May 24 i+- Re: Linux doesn't seem to manage memory very well1candycanearter07
2 May 24 i+- Re: Linux doesn't seem to manage memory very well1Lawrence D'Oliveiro
2 May 24 i`* Re: Linux doesn't seem to manage memory very well3James Harris
3 May 24 i `* Re: Linux doesn't seem to manage memory very well2The Natural Philosopher
6 May 24 i  `- Re: Linux doesn't seem to manage memory very well1candycanearter07
1 May 24 +* Re: Linux doesn't seem to manage memory very well5David W. Hodgins
2 May 24 i`* Re: Linux doesn't seem to manage memory very well4James Harris
2 May 24 i +- Re: Linux doesn't seem to manage memory very well1Carlos E.R.
2 May 24 i +- Re: Linux doesn't seem to manage memory very well1David W. Hodgins
3 May 24 i `- Re: Linux doesn't seem to manage memory very well1The Natural Philosopher
1 May 24 +* Re: Linux doesn't seem to manage memory very well29Lew Pitcher
1 May 24 i`* Re: Linux doesn't seem to manage memory very well28Kenny McCormack
1 May 24 i +* Re: Linux doesn't seem to manage memory very well4Richard Kettlewell
2 May 24 i i+- Re: Linux doesn't seem to manage memory very well1Lawrence D'Oliveiro
2 May 24 i i`* Re: Linux doesn't seem to manage memory very well2Marc Haber
2 May 24 i i `- Re: Linux doesn't seem to manage memory very well1The Natural Philosopher
2 May 24 i +* Re: Linux doesn't seem to manage memory very well18Carlos E.R.
2 May 24 i i+- Re: Linux doesn't seem to manage memory very well1Marc Haber
2 May 24 i i`* Re: Linux doesn't seem to manage memory very well16James Harris
2 May 24 i i `* Re: Linux doesn't seem to manage memory very well15Carlos E.R.
3 May 24 i i  `* Re: Linux doesn't seem to manage memory very well14Computer Nerd Kev
3 May 24 i i   +* Re: Linux doesn't seem to manage memory very well4The Natural Philosopher
3 May 24 i i   i`* Re: Linux doesn't seem to manage memory very well3Computer Nerd Kev
3 May 24 i i   i `* Re: Linux doesn't seem to manage memory very well2The Natural Philosopher
4 May 24 i i   i  `- Re: Linux doesn't seem to manage memory very well1Computer Nerd Kev
3 May 24 i i   `* Re: Linux doesn't seem to manage memory very well9Carlos E.R.
4 May 24 i i    `* Re: Linux doesn't seem to manage memory very well8Computer Nerd Kev
4 May 24 i i     +- Re: Linux doesn't seem to manage memory very well1Carlos E.R.
4 May 24 i i     +* Re: Linux user doesn't seem to manage memory very well2Lawrence D'Oliveiro
4 May 24 i i     i`- Re: Linux user doesn't seem to manage memory very well1Computer Nerd Kev
4 May 24 i i     +* Re: Linux doesn't seem to manage memory very well3The Natural Philosopher
6 May 24 i i     i`* Re: Linux doesn't seem to manage memory very well2candycanearter07
6 May 24 i i     i `- Re: Linux doesn't seem to manage memory very well1The Natural Philosopher
6 May 24 i i     `- Re: Linux doesn't seem to manage memory very well1candycanearter07
2 May 24 i `* Re: Linux doesn't seem to manage memory very well5James Harris
3 May 24 i  `* Re: Linux doesn't seem to manage memory very well4The Natural Philosopher
3 May 24 i   `* Re: Linux doesn't seem to manage memory very well3James Harris
3 May 24 i    `* Re: Linux doesn't seem to manage memory very well2Richard Kettlewell
4 May 24 i     `- Re: Linux user doesn't seem to manage memory very well1Lawrence D'Oliveiro
1 May 24 +- Re: Linux doesn't seem to manage memory very well1Marco Moock
1 May 24 +* Re: Linux doesn't seem to manage memory very well13Grant Taylor
1 May 24 i+* Re: Linux doesn't seem to manage memory very well11candycanearter07
1 May 24 ii`* Re: Linux doesn't seem to manage memory very well10Grant Taylor
2 May 24 ii `* Re: Linux doesn't seem to manage memory very well9Marc Haber
2 May 24 ii  `* Re: Linux doesn't seem to manage memory very well8Lawrence D'Oliveiro
2 May 24 ii   +- Re: Linux doesn't seem to manage memory very well1Andy Burns
2 May 24 ii   +* Re: Linux doesn't seem to manage memory very well3The Natural Philosopher
2 May 24 ii   i`* Re: Linux doesn't seem to manage memory very well2Carlos E.R.
2 May 24 ii   i `- Re: Linux doesn't seem to manage memory very well1Marc Haber
2 May 24 ii   +- Re: Linux doesn't seem to manage memory very well1Marc Haber
2 May 24 ii   `* Re: Linux doesn't seem to manage memory very well2Rich
2 May 24 ii    `- Re: Linux doesn't seem to manage memory very well1Carlos E.R.
2 May 24 i`- Re: Linux doesn't seem to manage memory very well1James Harris
1 May 24 +* Re: Linux doesn't seem to manage memory very well2D
1 Jun 24 i`- Re: Linux doesn't seem to manage memory very well126xh.0717
1 May 24 +- Re: Linux user doesn't seem to manage memory very well1Lawrence D'Oliveiro
2 May 24 `* Re: Linux doesn't seem to manage memory very well3Carlos E.R.
2 May 24  +- Re: Linux doesn't seem to manage memory very well1Rich
2 May 24  `- Re: Linux doesn't seem to manage memory very well1James Harris

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal