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

    From Marc Haber@21:1/5 to James Harris on Wed May 1 12:46:34 2024
    James Harris <james.harris.1@gmail.com> wrote:
    Not a question, just an observation.

    A freqently wrong one as well.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap >space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB. >What's more, it's now showing 4.8GB of swap space in use.

    Linux swaps out lesser used pages anyway to make the backing memory
    available for buffers or cache.

    Those people writing memory management are really smart. Smarter than
    you and me together. Don't assume them being stupid.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to James Harris on Wed May 1 11:53:45 2024
    On 01/05/2024 11:32, James Harris wrote:
    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB. What's more, it's now showing 4.8GB of swap space in use.


    That's not Linux. That's a rogue program with a memory leak...

    --
    “It is hard to imagine a more stupid decision or more dangerous way of
    making decisions than by putting those decisions in the hands of people
    who pay no price for being wrong.”

    Thomas Sowell

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to James Harris on Wed May 1 10:06:25 2024
    On Wed, 01 May 2024 06:32:18 -0400, James Harris <james.harris.1@gmail.com> wrote:
    Not a question, just an observation.
    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.
    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB. What's more, it's now showing 4.8GB of swap space in use.

    Likely you're using a system that's configured for maximum total throughput, not best response time.

    Create a file, /etc/sysctl.d/tales.conf with the contents ...
    # Reduce applications being swapped
    vm.swappiness=1
    # Don't shrink the inode cache
    vm.vfs_cache_pressure=50

    Then run the command "sysctl --system" (as root).

    See https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that
    for an explanation.

    Regards, Dave Hodgins

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From candycanearter07@21:1/5 to The Natural Philosopher on Wed May 1 14:40:12 2024
    The Natural Philosopher <tnp@invalid.invalid> wrote at 10:53 this Wednesday (GMT):
    On 01/05/2024 11:32, James Harris wrote:
    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap
    space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB.
    What's more, it's now showing 4.8GB of swap space in use.


    That's not Linux. That's a rogue program with a memory leak...


    Yeah.. look in htop for high memory usage. I know Steam takes a lot of
    memory.
    --
    user <candycane> is generated from /dev/urandom

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lew Pitcher@21:1/5 to James Harris on Wed May 1 14:42:52 2024
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload).

    I say that you are mistaken, and that Linux handles memory quite adequately (but differently from how Windows handles memory)

    Under Linux the RAM would fill up and then swap
    space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    Ahhh.... now you describe your problem symptoms. Perhaps, with more
    details, we can help you get the sort of performance that Linux can
    properly provide.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB. What's more, it's now showing 4.8GB of swap space in use.

    Sounds like a leaky application, but without more info, we can't help.

    To give a counter-example, here's a snapshot of my desktop system's
    usage (taken from top(1) )
    Tasks: 302 total, 1 running, 301 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 0.0 us, 0.8 sy, 0.0 ni, 99.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    MiB Mem : 30096.1 total, 25727.6 free, 2156.9 used, 2211.6 buff/cache
    MiB Swap: 65536.0 total, 65536.0 free, 0.0 used. 27297.9 avail Mem

    While I have more memory than you do (32Gb as compared to your 24Gb), I have 302 processes running and only about 4Gb of memory in use. Of my 64Gb of swap space, /none/ is in use.

    My previous desktop system(s) had less processing power, less memory, and less swap space, and ran lively, without memory or response time problems.

    So, if you want help, how about providing some details.

    HTH
    --
    Lew Pitcher
    "In Skills We Trust"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Wed May 1 16:48:22 2024
    On 01.05.2024 um 11:32 Uhr James Harris wrote:

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then
    swap space would be used. Then the machine would become largely
    unresponsive

    Check the swapiness settings.

    - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)!
    But even so, RAM has still steadily filled up until reaching the full
    24GB.

    It uses the RAM as a disk cache - for caching files from the disk and
    for caching files to be written when the disk is in use.


    --
    kind regards
    Marco

    Send spam to 1714555938muell@cartoonies.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to James Harris on Wed May 1 09:53:55 2024
    On 5/1/24 05:32, James Harris wrote:
    Not a question, just an observation.

    There more to it than just the amount of free RAM.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    Linux uses otherwise unused RAM for disk cache:

    Link - Help! Linux ate my RAM!
    - https://www.linuxatemyram.com/

    But using swap tells me that something else, not just Linux itself, is consuming / leaking memory.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB. What's more, it's now showing 4.8GB of swap space in use.

    See what's using the swap. That's going to be the offending process.

    Run `top`
    Hit the `f` key to add a field.
    Scroll down to SWAP and hit the space ` ` key to turn the swap column on.
    Hit the `s` key while still on SWAP to make it the sort column.
    Hit the `q` key to go back to the main screen and see what's using swap.



    --
    Grant. . . .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From candycanearter07@21:1/5 to Grant Taylor on Wed May 1 16:44:26 2024
    Grant Taylor <gtaylor@tnetconsulting.net> wrote at 14:53 this Wednesday (GMT):
    On 5/1/24 05:32, James Harris wrote:
    Not a question, just an observation.

    There more to it than just the amount of free RAM.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap
    space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    Linux uses otherwise unused RAM for disk cache:

    Link - Help! Linux ate my RAM!
    - https://www.linuxatemyram.com/

    But using swap tells me that something else, not just Linux itself, is consuming / leaking memory.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB.
    What's more, it's now showing 4.8GB of swap space in use.

    See what's using the swap. That's going to be the offending process.

    Run `top`
    Hit the `f` key to add a field.
    Scroll down to SWAP and hit the space ` ` key to turn the swap column on.
    Hit the `s` key while still on SWAP to make it the sort column.
    Hit the `q` key to go back to the main screen and see what's using swap.


    I prefer htop.
    --
    user <candycane> is generated from /dev/urandom

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D@21:1/5 to James Harris on Wed May 1 21:05:38 2024
    On Wed, 1 May 2024, James Harris wrote:

    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop had 8GB RAM (which, frankly, Windows seems to find perfectly adequate for a similar workload). Under Linux the RAM would fill up and then swap space would be used. Then the machine would become largely unresponsive - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But even so, RAM has still steadily filled up until reaching the full 24GB. What's more, it's now showing 4.8GB of swap space in use.

    Sounds like some rouge application and not linux. I never had any ram
    problems with linux given 4, 8 and now 16 gb of ram and I run firefox and
    xfce. Even ran gnome on 4 gb ram and no problems.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to All on Wed May 1 14:08:34 2024
    On 5/1/24 11:44, candycanearter07 wrote:
    I prefer htop.

    To each their own.

    As long as their own gets the job done.

    I've stuck with top as many systems I've worked on didn't have htop
    installed and I never felt compelled to justify why htop needed to be
    installed / top wouldn't suffice to the change approval board.



    --
    Grant. . . .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenny McCormack@21:1/5 to lew.pitcher@digitalfreehold.ca on Wed May 1 20:42:50 2024
    In article <v0tkdc$3780t$1@dont-email.me>,
    Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.
    ...

    So, if you want help, how about providing some details.

    OP was pretty clear that he was *not* seeking help.

    --
    A pervert, a racist, and a con man walk into a bar...

    Bartender says, "What will you have, Donald!"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Kenny McCormack on Wed May 1 22:42:04 2024
    gazelle@shell.xmission.com (Kenny McCormack) writes:
    Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.
    ...

    So, if you want help, how about providing some details.

    OP was pretty clear that he was *not* seeking help.

    Indeed, though it’s possible that requesting help might have saved him
    the cost of 16GB of RAM, wasted time, etc.

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to The Natural Philosopher on Wed May 1 22:58:56 2024
    On Wed, 1 May 2024 11:53:45 +0100, The Natural Philosopher wrote:

    That's not Linux. That's a rogue program with a memory leak...

    Which you can bring under control anyway <https://manpages.debian.org/bash/bash.1.en.html#ulimit>.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Richard Kettlewell on Thu May 2 00:00:25 2024
    On Wed, 01 May 2024 22:42:04 +0100, Richard Kettlewell wrote:

    OP was pretty clear that he was *not* seeking help.

    Indeed, though it’s possible that requesting help might have saved him
    the cost of 16GB of RAM, wasted time, etc.

    Before you can solve a problem, you have to recognize you have a problem.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Grant Taylor on Thu May 2 07:47:19 2024
    Grant Taylor <gtaylor@tnetconsulting.net> wrote:
    On 5/1/24 11:44, candycanearter07 wrote:
    I prefer htop.

    To each their own.

    As long as their own gets the job done.

    I've stuck with top as many systems I've worked on didn't have htop
    installed and I never felt compelled to justify why htop needed to be >installed / top wouldn't suffice to the change approval board.

    Why is it only we IT people that we have to justify the use of
    appropriate tools to a board of often non-technical people? No
    mechanic ever had to appear in front of a board to justify the use of
    spanner and screw driver, right?

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Richard Kettlewell on Thu May 2 07:46:00 2024
    Richard Kettlewell <invalid@invalid.invalid> wrote:
    Indeed, though it’s possible that requesting help might have saved him
    the cost of 16GB of RAM, wasted time, etc.

    Thankfully, 16 Gig are not that expensive nowadays.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Kenny McCormack on Thu May 2 08:01:29 2024
    On 2024-05-01 22:42, Kenny McCormack wrote:
    In article <v0tkdc$3780t$1@dont-email.me>,
    Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.
    ...

    So, if you want help, how about providing some details.

    OP was pretty clear that he was *not* seeking help.

    Because he is blaming Linux at large, when he has a problem in *his*
    system. He made a wrong diagnosis.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to James Harris on Thu May 2 07:59:42 2024
    On 2024-05-01 12:32, James Harris wrote:
    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB. What's more, it's now showing 4.8GB of swap space in use.

    No, your analysis is not correct.

    You have some buggy application or service that is eating all the
    memory. You have to search and hunt for it.

    Do you want our help?

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Marc Haber on Thu May 2 07:30:06 2024
    On 02/05/2024 06:46, Marc Haber wrote:
    Richard Kettlewell <invalid@invalid.invalid> wrote:
    Indeed, though it’s possible that requesting help might have saved him
    the cost of 16GB of RAM, wasted time, etc.

    Thankfully, 16 Gig are not that expensive nowadays.

    I just threw another 16GB of second hand RAM into this machine . The
    rogue RAM eater was a combination of Firefox and a Windows VM.

    Took almost 5 minutes. Cost less than £20.

    So whilst Richard is technically correct, I tend to side with your POV.
    Do the simple cheap options first...

    --
    "Strange as it seems, no amount of learning can cure stupidity, and
    higher education positively fortifies it."

    - Stephen Vizinczey

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to All on Thu May 2 07:52:59 2024
    TGF3cmVuY2UgRCdPbGl2ZWlybyB3cm90ZToNCg0KPiBNYXJjIEhhYmVyIHdyb3RlOg0KPiAN Cj4+IE5vIG1lY2hhbmljIGV2ZXIgaGFkIHRvIGFwcGVhciBpbiBmcm9udCBvZiBhIGJvYXJk IHRvIGp1c3RpZnkgdGhlIHVzZSBvZg0KPj4gc3Bhbm5lciBhbmQgc2NyZXcgZHJpdmVyLCBy aWdodD8NCj4gDQo+IEnigJltIHN1cmUgdGhleSBkbywgdG8gd2hvbWV2ZXIgY29udHJvbHMg dGhlIHB1cnNlIHN0cmluZ3MgYXQgdGhlIGdhcmFnZS4NCg0KQSBsb3Qgb2YgbWVjaGFuaWNz IHByb3ZpZGUgdGhlaXIgb3duIHRvb2xzLCBwZXJoYXBzIGxlc3Mtc28gYXQgYSBtYWluIA0K ZGVhbGVyc2hpcC4NCg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Marc Haber on Thu May 2 06:45:01 2024
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:

    No mechanic ever had to appear in front of a board to justify the use of spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to The Natural Philosopher on Thu May 2 10:03:38 2024
    On 2024-05-02 09:35, The Natural Philosopher wrote:
    On 02/05/2024 07:45, Lawrence D'Oliveiro wrote:
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:

    No mechanic ever had to appear in front of a board to justify the use of >>> spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage.

    Well indeed. Although not a board, just the boss.

    My mechanic boss has to query the board. It is a chain.
    Not for a spanner, but for expensive diagnostic tools.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Lawrence D'Oliveiro on Thu May 2 08:35:27 2024
    On 02/05/2024 07:45, Lawrence D'Oliveiro wrote:
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:

    No mechanic ever had to appear in front of a board to justify the use of
    spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage.

    Well indeed. Although not a board, just the boss.


    --
    The urge to save humanity is almost always a false front for the urge to
    rule.
    – H. L. Mencken, American journalist, 1880-1956

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Lawrence D'Oliveiro on Thu May 2 13:07:55 2024
    Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:
    No mechanic ever had to appear in front of a board to justify the use of
    spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage.

    Show me a single garage without spanner or screw driver.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Carlos E.R. on Thu May 2 13:05:57 2024
    "Carlos E.R." <robin_listas@es.invalid> wrote:
    On 2024-05-01 22:42, Kenny McCormack wrote:
    In article <v0tkdc$3780t$1@dont-email.me>,
    Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.
    ...

    So, if you want help, how about providing some details.

    OP was pretty clear that he was *not* seeking help.

    Because he is blaming Linux at large, when he has a problem in *his*
    system. He made a wrong diagnosis.

    And a frequent one for crying out loud. Heck, there is an FAQ about
    this very issue.

    Memory management is always "too little, too slow", impossible to do
    right for everybody.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Carlos E.R. on Thu May 2 13:08:55 2024
    "Carlos E.R." <robin_listas@es.invalid> wrote:
    On 2024-05-02 09:35, The Natural Philosopher wrote:
    On 02/05/2024 07:45, Lawrence D'Oliveiro wrote:
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:

    No mechanic ever had to appear in front of a board to justify the use of >>>> spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage. >>
    Well indeed. Although not a board, just the boss.

    My mechanic boss has to query the board. It is a chain.
    Not for a spanner, but for expensive diagnostic tools.

    htop or atop are not expensive. They're available in all major
    distribution's repositories ready for installation.

    Greetings
    Marc, who is responsible for atop turning up in Debian's repositories
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Lawrence D'Oliveiro on Thu May 2 14:11:21 2024
    Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:

    No mechanic ever had to appear in front of a board to justify the use of
    spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage.

    At nearly all auto-shops, the basic tools (spanners/screwdrivers/etc.)
    are purchased and owned by the actual mechanics using them and not the
    operator of the garage. What the shop owner provides are the
    "infrastructure" items (lifts, air compressor, some of the more
    specialized tools, such as the tyre changer or the 'computer diagnostic
    rack', etc.).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Carlos E.R. on Thu May 2 14:15:59 2024
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2024-05-01 12:32, James Harris wrote:
    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap
    space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB.
    What's more, it's now showing 4.8GB of swap space in use.

    No, your analysis is not correct.

    You have some buggy application or service that is eating all the
    memory. You have to search and hunt for it.

    Another reply indicates that his issue is the fact that browsers
    (Chrome, Firefox) are bloated, memory hungry, "leaks" that eventually
    eat all of ram, driving any system's memory management to insanity.

    This, unfortuantely, is just a fact of browsers. They eat memory to no
    end.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to James Harris on Thu May 2 16:41:29 2024
    James Harris <james.harris.1@gmail.com> wrote:
    It may be unwise to assume there's such expertise. A number of years ago
    I came up with what I thought was a sensible design for a paging system.
    I later found that it corresponded very closely to the one used in
    Windows and differed markedly from the paging system used in Linux. I >remember thinking that the latter was not a good design and since then
    I've experienced problems with Linux when memory fills up which I tend
    to assume are down to the design of its paging system - hence the,
    admittedly provocative, title of this thread.

    There is more than way to do it. Windows and Linux are both operating
    systems, and still fundamentally different. For example, firing up a
    new process is vastly more expensive in Windows than Linux's fork()
    mechanism. There is no "better" or "worse" in that comparision.

    I don't know enough about VMS, but didn't the guy who led the design
    the process and memory management layer for Windows NT come from
    Digital Equipment?

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Marc Haber on Thu May 2 16:18:52 2024
    Marc Haber <mh+usenetspam1118@zugschl.us> wrote:
    James Harris <james.harris.1@gmail.com> wrote:
    It may be unwise to assume there's such expertise. A number of years ago
    I came up with what I thought was a sensible design for a paging system.
    I later found that it corresponded very closely to the one used in
    Windows and differed markedly from the paging system used in Linux. I >>remember thinking that the latter was not a good design and since then
    I've experienced problems with Linux when memory fills up which I tend
    to assume are down to the design of its paging system - hence the, >>admittedly provocative, title of this thread.

    There is more than way to do it. Windows and Linux are both operating systems, and still fundamentally different. For example, firing up a
    new process is vastly more expensive in Windows than Linux's fork() mechanism. There is no "better" or "worse" in that comparision.

    I don't know enough about VMS, but didn't the guy who led the design
    the process and memory management layer for Windows NT come from
    Digital Equipment?

    Yes, Dave Cutler, chief architect for VMS, plus much of the DEC VMS
    team that remained at the time.

    https://en.wikipedia.org/wiki/Dave_Cutler

    The core innards of NT are supposedly *very* VMS like.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to Rich on Thu May 2 20:04:19 2024
    Rich <rich@example.invalid> wrote:
    The core innards of NT are supposedly *very* VMS like.

    And VMS was VERY different to Unix, so it is hardly surprising that
    Windows today does many things different than Linux. And I think
    that's a good thing.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to James Harris on Thu May 2 21:19:49 2024
    On 2024-05-02 15:54, James Harris wrote:
    On 01/05/2024 15:06, David W. Hodgins wrote:
    On Wed, 01 May 2024 06:32:18 -0400, James Harris
    <james.harris.1@gmail.com> wrote:
    Not a question, just an observation.
    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then swap >>> space would be used. Then the machine would become largely unresponsive
    - e.g. taking minutes to switch between windows.
    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full 24GB.
    What's more, it's now showing 4.8GB of swap space in use.

    Likely you're using a system that's configured for maximum total
    throughput,
    not best response time.

    Create a file, /etc/sysctl.d/tales.conf with the contents ...
    # Reduce applications being swapped
    vm.swappiness=1
    # Don't shrink the inode cache
    vm.vfs_cache_pressure=50

    Then run the command "sysctl --system" (as root).

    See
    https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that
    for an explanation.

    I very much like the control that Linux gives to a user but ISTM that
    what you say here is a great example of the issue I was pointing out in
    the original post: IMO page depletion should be handled better *by
    default* and not need human intervention for normal scenarios.

    It is up to you to set the defaults.

    The defaults you get were set by the distribution, and each distribution
    does this differently.

    hint: ulimit.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Rich on Thu May 2 21:15:24 2024
    On 2024-05-02 16:11, Rich wrote:
    Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
    On Thu, 02 May 2024 07:47:19 +0200, Marc Haber wrote:

    No mechanic ever had to appear in front of a board to justify the use of >>> spanner and screw driver, right?

    I’m sure they do, to whomever controls the purse strings at the garage.

    At nearly all auto-shops, the basic tools (spanners/screwdrivers/etc.)
    are purchased and owned by the actual mechanics using them and not the operator of the garage. What the shop owner provides are the "infrastructure" items (lifts, air compressor, some of the more
    specialized tools, such as the tyre changer or the 'computer diagnostic rack', etc.).

    Not here.

    The entrepeneur, the boss, the owner, hires the mechanics and must
    provide everything. Protective clothing and gear, tools. Yes, every tool
    is owned by the garage. The employee is not required to provide anything
    except his person and knowledge and time and effort.


    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to James Harris on Thu May 2 16:46:10 2024
    On Thu, 02 May 2024 09:54:30 -0400, James Harris <james.harris.1@gmail.com> wrote:
    <snip>
    I very much like the control that Linux gives to a user but ISTM that
    what you say here is a great example of the issue I was pointing out in
    the original post: IMO page depletion should be handled better *by
    default* and not need human intervention for normal scenarios.

    A system designed for a single user will likely try to make fast response time for
    that one user the priority.

    Unix and Linux were not designed for that. They were designed to be multi-user systems that make the best use of available resources the priority, even if that is at the expense of the response time for one of the poeple sitting at one
    of the terminals.

    The settings can easily be tweaked to suit the system administrator's priorities.

    A distribution is free to alter the defaults it provides, but most choose to keep
    the upstream defaults, to ensure it matches the documentation from the author of the software.

    Regards, Dave Hodgins

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to James Harris on Thu May 2 23:34:25 2024
    On 2024-05-02 16:06, James Harris wrote:
    On 02/05/2024 07:01, Carlos E.R. wrote:
    On 2024-05-01 22:42, Kenny McCormack wrote:
    In article <v0tkdc$3780t$1@dont-email.me>,
    Lew Pitcher  <lew.pitcher@digitalfreehold.ca> wrote:
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.
    ...

    So, if you want help, how about providing some details.

    OP was pretty clear that he was *not* seeking help.

    Because he is blaming Linux at large, when he has a problem in *his*
    system. He made a wrong diagnosis.

    Yes, I am (at least tentatively) blaming Linux but not for the problem
    you think. I wouldn't expect Linux to prevent programs from gobbling up memory but I would expect it to manage memory hogs more gracefully than
    it does. IME Windows handles the same situation better - and that may be
    down to the different designs of their paging systems.

    Don't get me wrong. I much prefer Linux to Windows and have often seen Windows get into a worse situation under different circumstances. But
    for page management ISTM that the design of Linux's paging subsystem may
    not be the best.

    You can configure Linux to crash the application that is behaving badly
    by grabbing all the memory. It is up to you, the boss.

    The philosophy is not to nanny care for you. It does what you asked.
    More memory? Yes sir. Till death does us part. Your orders will be obeyed.

    :-)


    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Computer Nerd Kev@21:1/5 to Carlos E.R. on Fri May 3 09:23:42 2024
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2024-05-02 16:06, James Harris wrote:

    Yes, I am (at least tentatively) blaming Linux but not for the problem
    you think. I wouldn't expect Linux to prevent programs from gobbling up
    memory but I would expect it to manage memory hogs more gracefully than
    it does. IME Windows handles the same situation better - and that may be
    down to the different designs of their paging systems.

    Don't get me wrong. I much prefer Linux to Windows and have often seen
    Windows get into a worse situation under different circumstances. But
    for page management ISTM that the design of Linux's paging subsystem may
    not be the best.

    You can configure Linux to crash the application that is behaving badly
    by grabbing all the memory. It is up to you, the boss.

    The philosophy is not to nanny care for you. It does what you asked.
    More memory? Yes sir. Till death does us part. Your orders will be obeyed.

    :-)

    I didn't know there was an option not to have it do that (via the
    Out Of Memory Reaper). It seems the alternatives are to reboot or
    risk the kernel crashing, so your description seems about right.

    https://www.oracle.com/technical-resources/articles/it-infrastructure/dev-oom-killer.html

    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.

    I don't use web browsers to play video. If you're streaming super
    high resolution video through your browser with the latest and
    greatest compression algorithms, then it probably has the right
    to chew up a lot of RAM.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to James Harris on Fri May 3 06:47:45 2024
    On 02/05/2024 14:50, James Harris wrote:
    On 01/05/2024 11:53, The Natural Philosopher wrote:
    On 01/05/2024 11:32, James Harris wrote:
    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then
    swap space would be used. Then the machine would become largely
    unresponsive - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)!
    But even so, RAM has still steadily filled up until reaching the full
    24GB. What's more, it's now showing 4.8GB of swap space in use.


    That's not Linux. That's a rogue program with a memory leak...

    It may not be a memory leak but it's certainly a rogue program - chrome/chromium in this case, though I've had similar and worse problems
    with Firefox which seems to me more likely to have a genuine memory leak.

    However, the point of the original post was to vent a frustration about
    the way that Linux handles such memory deletion when it happens.


    It is not hard to write a javascript program that eats all memory and
    place it on a website.

    I even encountered a website that silently ran some sort of proxy server
    in my browser and used up all my upload bandwidth.


    Linux at least protects you from such sites having root access by default...


    --
    Future generations will wonder in bemused amazement that the early
    twenty-first century’s developed world went into hysterical panic over a globally average temperature increase of a few tenths of a degree, and,
    on the basis of gross exaggerations of highly uncertain computer
    projections combined into implausible chains of inference, proceeded to contemplate a rollback of the industrial age.

    Richard Lindzen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to James Harris on Fri May 3 06:50:18 2024
    On 02/05/2024 14:54, James Harris wrote:
    ISTM that
    what you say here is a great example of the issue I was pointing out in
    the original post: IMO page depletion should be handled better *by
    default* and not need human intervention for normal scenarios.

    IME that is exactly what Linux *does* do.
    Handles everything perfectly by default.
    Swapping is what happens when *all else fails*.

    In Windows, programs simply crash.

    --
    Microsoft : the best reason to go to Linux that ever existed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to James Harris on Fri May 3 06:51:08 2024
    On 02/05/2024 15:01, James Harris wrote:
    On 01/05/2024 21:42, Kenny McCormack wrote:
    In article <v0tkdc$3780t$1@dont-email.me>,
    Lew Pitcher  <lew.pitcher@digitalfreehold.ca> wrote:
    On Wed, 01 May 2024 11:32:18 +0100, James Harris wrote:

    Not a question, just an observation.
    ...

    So, if you want help, how about providing some details.

    OP was pretty clear that he was *not* seeking help.

    Correct. I don't want to overtax the expert assistance that's clearly available from posters to this newsgroup and would rather ask for help relatively rarely, so I am not looking (at least, yet!) for a solution.
    My point, in this thread, was, instead, to comment on what I perceive to
    be an OS-design issue - a long-term interest.


    In short anti-linux trolling.
    --
    “when things get difficult you just have to lie”

    ― Jean Claud Jüncker

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Computer Nerd Kev on Fri May 3 07:02:34 2024
    On 03/05/2024 00:23, Computer Nerd Kev wrote:
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2024-05-02 16:06, James Harris wrote:

    Yes, I am (at least tentatively) blaming Linux but not for the problem
    you think. I wouldn't expect Linux to prevent programs from gobbling up
    memory but I would expect it to manage memory hogs more gracefully than
    it does. IME Windows handles the same situation better - and that may be >>> down to the different designs of their paging systems.

    Don't get me wrong. I much prefer Linux to Windows and have often seen
    Windows get into a worse situation under different circumstances. But
    for page management ISTM that the design of Linux's paging subsystem may >>> not be the best.

    You can configure Linux to crash the application that is behaving badly
    by grabbing all the memory. It is up to you, the boss.

    The philosophy is not to nanny care for you. It does what you asked.
    More memory? Yes sir. Till death does us part. Your orders will be obeyed. >>
    :-)

    I didn't know there was an option not to have it do that (via the
    Out Of Memory Reaper). It seems the alternatives are to reboot or
    risk the kernel crashing, so your description seems about right.

    https://www.oracle.com/technical-resources/articles/it-infrastructure/dev-oom-killer.html

    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.

    I don't use web browsers to play video. If you're streaming super
    high resolution video through your browser with the latest and
    greatest compression algorithms, then it probably has the right
    to chew up a lot of RAM.

    I use browsers to play videos. RAM usage is not massive. CPU usage is.

    What chews memory are *commercial* websites loaded with (deliberately)
    buggy javaScript that cause javaScript engines to go into meltdown. How
    that is handled is browser dependent.

    Ublock Origin helps massively, but is not a complete answer.
    What is a massive help at leats in Mint Mate is the System Monitor
    widget that I keep in the task bar permanently displaying CPU, RAM and
    Network usage as teeny graphs.
    It is very easy to see when memory is all grabbed by a process rather
    than simply cache
    And monitor how much gets released when you close a website page.

    It is configurable to do what htop, top and atop do in a much simpler
    way for GUI users
    Right now, it looks like Thunderbird is my biggest surprise at almost a gigabyte?

    I will close it and reopen it. It shouldnt be THAT heavy on memory.


    --
    “when things get difficult you just have to lie”

    ― Jean Claud Jüncker

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Computer Nerd Kev@21:1/5 to The Natural Philosopher on Fri May 3 17:45:38 2024
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 03/05/2024 00:23, Computer Nerd Kev wrote:
    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.

    I don't use web browsers to play video. If you're streaming super
    high resolution video through your browser with the latest and
    greatest compression algorithms, then it probably has the right
    to chew up a lot of RAM.

    I use browsers to play videos. RAM usage is not massive. CPU usage is.

    Perhaps RAM usage isn't that great on the scale of systems with tens
    of GB of RAM. Compared to 2GB I think it may be significant because
    when I tried to transcode a 1920x1080 video in AV1 format to
    lower-res MPEG4 on a VPS with 1GB RAM + 1GB swap space, ffmpeg
    (v. 4) surprised me by running out of RAM. Of course it could be a
    bug in that decoder, but not having tackled much AV1 video before I
    concluded that high resolutions plus modern video codecs requires
    lots of RAM.

    What chews memory are *commercial* websites loaded with (deliberately)
    buggy javaScript that cause javaScript engines to go into meltdown. How
    that is handled is browser dependent.

    Ublock Origin helps massively, but is not a complete answer.
    What is a massive help at leats in Mint Mate is the System Monitor
    widget that I keep in the task bar permanently displaying CPU, RAM and Network usage as teeny graphs.
    It is very easy to see when memory is all grabbed by a process rather
    than simply cache
    And monitor how much gets released when you close a website page.

    There's also about:performance in Firefox. I do use NoScript with
    all my browsing in Firefox.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joerg Walther@21:1/5 to James Harris on Fri May 3 11:40:30 2024
    James Harris wrote:

    It may not be a memory leak but it's certainly a rogue program - >chrome/chromium in this case, though I've had similar and worse problems
    with Firefox which seems to me more likely to have a genuine memory leak.

    I had the issue with Chrome (not with Chromium) that when streaming
    videos it would take as much RAM as the video size was in total, so one
    browser tab could easily eat up a couple of GB of memory. I then
    switched to Chromium, which didn't have this issue. This was probably 6
    months ago, so I do not know whether current versions of Chrome still
    have his issue (Ubuntu here).

    -jw-
    --
    And now for something completely different...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Computer Nerd Kev on Fri May 3 13:38:00 2024
    On 2024-05-03 01:23, Computer Nerd Kev wrote:
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2024-05-02 16:06, James Harris wrote:

    Yes, I am (at least tentatively) blaming Linux but not for the problem
    you think. I wouldn't expect Linux to prevent programs from gobbling up
    memory but I would expect it to manage memory hogs more gracefully than
    it does. IME Windows handles the same situation better - and that may be >>> down to the different designs of their paging systems.

    Don't get me wrong. I much prefer Linux to Windows and have often seen
    Windows get into a worse situation under different circumstances. But
    for page management ISTM that the design of Linux's paging subsystem may >>> not be the best.

    You can configure Linux to crash the application that is behaving badly
    by grabbing all the memory. It is up to you, the boss.

    The philosophy is not to nanny care for you. It does what you asked.
    More memory? Yes sir. Till death does us part. Your orders will be obeyed. >>
    :-)

    I didn't know there was an option not to have it do that (via the
    Out Of Memory Reaper). It seems the alternatives are to reboot or
    risk the kernel crashing, so your description seems about right.

    https://www.oracle.com/technical-resources/articles/it-infrastructure/dev-oom-killer.html

    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.

    When I started using Linux, back in 1998, I did notice that Linux needed
    more memory than Windows to work right. 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 don't use web browsers to play video.

    No youtube? :-)

    If you're streaming super
    high resolution video through your browser with the latest and
    greatest compression algorithms, then it probably has the right
    to chew up a lot of RAM.


    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Computer Nerd Kev on Fri May 3 13:37:41 2024
    On 03/05/2024 08:45, Computer Nerd Kev wrote:
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 03/05/2024 00:23, Computer Nerd Kev wrote:
    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.

    I don't use web browsers to play video. If you're streaming super
    high resolution video through your browser with the latest and
    greatest compression algorithms, then it probably has the right
    to chew up a lot of RAM.

    I use browsers to play videos. RAM usage is not massive. CPU usage is.

    Perhaps RAM usage isn't that great on the scale of systems with tens
    of GB of RAM. Compared to 2GB I think it may be significant because
    when I tried to transcode a 1920x1080 video in AV1 format to
    lower-res MPEG4 on a VPS with 1GB RAM + 1GB swap space, ffmpeg
    (v. 4) surprised me by running out of RAM. Of course it could be a
    bug in that decoder, but not having tackled much AV1 video before I
    concluded that high resolutions plus modern video codecs requires
    lots of RAM.

    Transcoding is not playing

    What chews memory are *commercial* websites loaded with (deliberately)
    buggy javaScript that cause javaScript engines to go into meltdown. How
    that is handled is browser dependent.

    Ublock Origin helps massively, but is not a complete answer.
    What is a massive help at leats in Mint Mate is the System Monitor
    widget that I keep in the task bar permanently displaying CPU, RAM and
    Network usage as teeny graphs.
    It is very easy to see when memory is all grabbed by a process rather
    than simply cache
    And monitor how much gets released when you close a website page.

    There's also about:performance in Firefox. I do use NoScript with
    all my browsing in Firefox.

    I haven't yet needed to



    --
    Renewable energy: Expensive solutions that don't work to a problem that
    doesn't exist instituted by self legalising protection rackets that
    don't protect, masquerading as public servants who don't serve the public.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to James Harris on Fri May 3 16:23:02 2024
    James Harris <james.harris.1@gmail.com> writes:
    On 03/05/2024 06:51, The Natural Philosopher wrote:
    In short anti-linux trolling.

    Nope. Posting to a discussion forum to have a discussion about a point
    of interest.

    There’s not really enough in the original posting for anyone to have an informed discussion, though.

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Computer Nerd Kev@21:1/5 to Carlos E.R. on Sat May 4 10:13:26 2024
    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.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Computer Nerd Kev@21:1/5 to The Natural Philosopher on Sat May 4 09:21:34 2024
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 03/05/2024 08:45, Computer Nerd Kev wrote:
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 03/05/2024 00:23, Computer Nerd Kev wrote:
    I don't use web browsers to play video. If you're streaming super
    high resolution video through your browser with the latest and
    greatest compression algorithms, then it probably has the right
    to chew up a lot of RAM.

    I use browsers to play videos. RAM usage is not massive. CPU usage is.

    Perhaps RAM usage isn't that great on the scale of systems with tens
    of GB of RAM. Compared to 2GB I think it may be significant because
    when I tried to transcode a 1920x1080 video in AV1 format to
    lower-res MPEG4 on a VPS with 1GB RAM + 1GB swap space, ffmpeg
    (v. 4) surprised me by running out of RAM. Of course it could be a
    bug in that decoder, but not having tackled much AV1 video before I
    concluded that high resolutions plus modern video codecs requires
    lots of RAM.

    Transcoding is not playing

    They both involve decoding. I converted other HD video to the same
    output format without RAM issues, so the difference was the input
    format, decoding the AV1 video, which applies to playback and
    transcoding. Maybe it was a bug in ffmpeg, but as I haven't seen
    benchmarks for memory usage online so I concluded from my own
    experience. After a recent OS upgrade the VPS now has ffmpeg 5
    installed, so I'll see what happens next time some AV1 video comes
    my way.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Computer Nerd Kev on Sat May 4 02:34:00 2024
    On 2024-05-04 02:13, Computer Nerd Kev wrote:
    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).

    If memory serves, my explanation above comes from a Chrome dev,
    distorted through years of retelling it ;-)

    ...

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Computer Nerd Kev on Sat May 4 10:48:04 2024
    On 04/05/2024 01:13, Computer Nerd Kev wrote:
    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).

    Once you run a GUI and some modern python style code its amazing how
    much ram crap apps can gobble up

    I just upgraded from 8GB because the combination of 3GB of windows VM
    plus a browser running a 3D printers webserver with embedded video, plus
    a Python 3D slicer overwhelmed the machine and sent it into swap.

    Firefox seems to spawn an infinite number of 'webkit' and 'isolated web company' children

    Especially with necessary ad blockers installed

    Thunderbird is over half a GB

    Orca slicer is 400GB+

    Plus two instances of a linux game I am playing takes *hard* usage to
    over 8GB/ I.e before cached files etc.

    Now these are all things I want to do *at the same time*. Edit in
    windows VM, pass 3D files to the slicer, monitor print progress via the
    web interface, and play a linux game to while away the minutes waiting
    for the 3D printer to turn out yet another 'close, but no cigar' print
    that needs re-editing. Or while reading the news^H^H^H^H propaganda, or
    Usenet, or getting email in.

    All I can say is, thank Clapton Linux has a really good memory manager.


    $ free -m
    total used free shared buff/cache available
    Mem: 23909 7385 931 1044 15592
    15090
    Swap: 2047 0 2047

    I can't control 3rd party apps, but I can control my machine's memory.

    Up till buying a 3D printer 8GB was more than enough, but the constant
    use of windows based 3D and 2D CAD programs plus the slicer and
    firefoxes latest bloatery has taken it over the edge


    --
    For every complex problem there is an answer that is clear, simple, and
    wrong.

    H.L.Mencken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From candycanearter07@21:1/5 to The Natural Philosopher on Mon May 6 15:30:11 2024
    The Natural Philosopher <tnp@invalid.invalid> wrote at 09:48 this Saturday (GMT):
    On 04/05/2024 01:13, Computer Nerd Kev wrote:
    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).

    Once you run a GUI and some modern python style code its amazing how
    much ram crap apps can gobble up

    I just upgraded from 8GB because the combination of 3GB of windows VM
    plus a browser running a 3D printers webserver with embedded video, plus
    a Python 3D slicer overwhelmed the machine and sent it into swap.

    Firefox seems to spawn an infinite number of 'webkit' and 'isolated web company' children

    Especially with necessary ad blockers installed

    Thunderbird is over half a GB

    Orca slicer is 400GB+

    Plus two instances of a linux game I am playing takes *hard* usage to
    over 8GB/ I.e before cached files etc.

    Now these are all things I want to do *at the same time*. Edit in
    windows VM, pass 3D files to the slicer, monitor print progress via the
    web interface, and play a linux game to while away the minutes waiting
    for the 3D printer to turn out yet another 'close, but no cigar' print
    that needs re-editing. Or while reading the news^H^H^H^H propaganda, or Usenet, or getting email in.

    All I can say is, thank Clapton Linux has a really good memory manager.


    $ free -m
    total used free shared buff/cache available
    Mem: 23909 7385 931 1044 15592
    15090
    Swap: 2047 0 2047

    I can't control 3rd party apps, but I can control my machine's memory.

    Up till buying a 3D printer 8GB was more than enough, but the constant
    use of windows based 3D and 2D CAD programs plus the slicer and
    firefoxes latest bloatery has taken it over the edge


    Yeah, but what other JS-compatible browsers exist? Chromium is also bad
    with memory..
    --
    user <candycane> is generated from /dev/urandom

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From candycanearter07@21:1/5 to Computer Nerd Kev on Mon May 6 15:30:12 2024
    Computer Nerd Kev <not@telling.you.invalid> wrote at 00:13 this Saturday (GMT):
    Carlos E.R. <robin_listas@es.invalid> wrote:
    On 2024-05-03 01:23, Computer Nerd Kev wrote:
    [snip]
    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.


    ytfzf is another good tool for YouTube downloading.
    --
    user <candycane> is generated from /dev/urandom

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to All on Mon May 6 20:34:51 2024
    On 06/05/2024 16:30, candycanearter07 wrote:
    The Natural Philosopher <tnp@invalid.invalid> wrote at 09:48 this Saturday (GMT):
    On 04/05/2024 01:13, Computer Nerd Kev wrote:
    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).

    Once you run a GUI and some modern python style code its amazing how
    much ram crap apps can gobble up

    I just upgraded from 8GB because the combination of 3GB of windows VM
    plus a browser running a 3D printers webserver with embedded video, plus
    a Python 3D slicer overwhelmed the machine and sent it into swap.

    Firefox seems to spawn an infinite number of 'webkit' and 'isolated web
    company' children

    Especially with necessary ad blockers installed

    Thunderbird is over half a GB

    Orca slicer is 400GB+

    Plus two instances of a linux game I am playing takes *hard* usage to
    over 8GB/ I.e before cached files etc.

    Now these are all things I want to do *at the same time*. Edit in
    windows VM, pass 3D files to the slicer, monitor print progress via the
    web interface, and play a linux game to while away the minutes waiting
    for the 3D printer to turn out yet another 'close, but no cigar' print
    that needs re-editing. Or while reading the news^H^H^H^H propaganda, or
    Usenet, or getting email in.

    All I can say is, thank Clapton Linux has a really good memory manager.


    $ free -m
    total used free shared buff/cache
    available
    Mem: 23909 7385 931 1044 15592
    15090
    Swap: 2047 0 2047

    I can't control 3rd party apps, but I can control my machine's memory.

    Up till buying a 3D printer 8GB was more than enough, but the constant
    use of windows based 3D and 2D CAD programs plus the slicer and
    firefoxes latest bloatery has taken it over the edge


    Yeah, but what other JS-compatible browsers exist? Chromium is also bad
    with memory..

    They are all like that, as the manager said..

    https://www.youtube.com/watch?v=k58knuvcQjQ


    --
    A lie can travel halfway around the world while the truth is putting on
    its shoes.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From 26xh.0717@21:1/5 to All on Sat Jun 1 00:30:52 2024
    On 5/1/24 3:05 PM, D wrote:


    On Wed, 1 May 2024, James Harris wrote:

    Not a question, just an observation.

    I say that Linux doesn't seem to handle memory well because my laptop
    had 8GB RAM (which, frankly, Windows seems to find perfectly adequate
    for a similar workload). Under Linux the RAM would fill up and then
    swap space would be used. Then the machine would become largely
    unresponsive - e.g. taking minutes to switch between windows.

    So I upgraded the RAM. It now has three times as much (i.e. 24GB)! But
    even so, RAM has still steadily filled up until reaching the full
    24GB. What's more, it's now showing 4.8GB of swap space in use.

    Sounds like some rouge application and not linux. I never had any ram problems with linux given 4, 8 and now 16 gb of ram and I run firefox
    and xfce. Even ran gnome on 4 gb ram and no problems.


    Agreed ... Linux manages memory perfectly OK. His
    prob is a rogue app, likely failing to de-allocate
    some kind of (largish) buffers. He may need to
    run valgrind, or at least sudo pmap -x <pid>
    several times on suspected apps to see what's
    going on. ps can kind-of be coerced into showing
    the real usage, but it's a lot of flags. top can
    also give you a fair picture.

    Dynamic memory allocation - albeit ancient - can
    be a pain.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)