• disk cache

    From xuser@21:1/5 to All on Thu Jun 12 04:00:01 2025
    is there any way to limit the disk cache to %30 of the memory?

    xuser@sdf.org
    SDF Public Access UNIX System - http://sdf.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From xuser@21:1/5 to Mike Castle on Thu Jun 12 05:30:01 2025
    Yes, i know but linux keeps locking up as soon as the cache has used most
    of the memory

    On Wed, 11 Jun 2025, Mike Castle wrote:

    Date: Wed, 11 Jun 2025 19:48:06 -0700
    From: Mike Castle <dalgoda+debian@gmail.com>
    To: xuser <xuser@sdf.org>
    Cc: debian-user@lists.debian.org
    Subject: Re: disk cache
    Resent-Date: Thu, 12 Jun 2025 02:48:41 +0000 (UTC)
    Resent-From: debian-user@lists.debian.org

    On Wed, Jun 11, 2025 at 6:52?PM xuser <xuser@sdf.org> wrote:
    is there any way to limit the disk cache to %30 of the memory?

    Why do you think you need to do that?

    The kernel should be doing a good job of efficiently using the memory. Restricting the amount of RAM used for caching is likely to slow
    things down more than not.

    mrc




    xuser@sdf.org
    SDF Public Access UNIX System - http://sdf.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to xuser on Thu Jun 12 06:20:01 2025
    Hi,

    On Thu, Jun 12, 2025 at 03:26:36AM +0000, xuser wrote:
    Yes, i know but linux keeps locking up as soon as the cache has used most of the memory

    It sounds like you have some process using too much memory, or you have
    faulty hardware. It should not behave like that unless there is
    something eating all the memory, in which case you would see the buffer
    cache shrink as things are evicted to give to the hungry process(es).

    Here's your options anyway, but I wouldn't use any of them until I knew
    what was going wrong.

    https://www.baeldung.com/linux/restrict-size-buffer-cache

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

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