Re: disk cache
On Thu, Jun 12, 2025 at 8:41 AM Andy Smith <andy@strugglers.net> wrote:
>
> 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
I suspect a hardware problem, specifically that when the buffer start
filling up it's using memory that's faulty in some way, and that's
when you start seeing problems.
Go read up on the excellent tool called "memtest86+", available to be
installed in debian. Run memtest for a longer time, preferably over
night if that's at all possible. If there's even a single error
reported, then you know the hardware is bad and you can take it from
there.
Reply to: