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

Re: Limiting Disck Cache



On Wed, 2004-12-15 at 22:24 +0000, Ivan Garcia Sainz-Aja wrote:
> Hi all,
> 
> how can i limit the amount of this cache linux uses?

You can't.  By design, it's totally dynamic.

> i'm using an external usb hd for playing movies/mp3 but
> after a time of usage the memory becomes full and the system 
> virtually unusable and i got to umount/mount the drive to 
> keep working
> 
> root@thinkpad:~# cat /proc/meminfo
>         total:    used:    free:  shared: buffers:  cached:
> Mem:  775114752 772341760  2772992        0  7421952 609456128
> Swap: 348323840 14917632 333406208
> MemTotal:       756948 kB
> MemFree:          2708 kB
> MemShared:           0 kB
> Buffers:          7248 kB
> Cached:         593088 kB
> SwapCached:       2084 kB
> Active:          41492 kB
> Inactive:       664144 kB
> HighTotal:           0 kB
> HighFree:            0 kB
> LowTotal:       756948 kB
> LowFree:          2708 kB
> SwapTotal:      340160 kB
> SwapFree:       325592 kB
> 
> which is mad

Only 15MB of "stuff" is in swap.  That's not enough to make the
system "virtually unusable".  Something else must be going on that
you aren't telling us about.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"A C program is like a fast dance on a newly waxed dance floor by
people carrying razors."
Waldi Ravens

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: