• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

I don't have that much of anything...

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Christoph

JAPH Senior
Joined
Oct 8, 2001
Location
Redmond, WA
I seem to have ~4.2 TB of something cached on my well-loved and used Debian fileserver. I don't notice any problems, but this is really strange. Nothing like this happens on my main box.
In yellow is everything that holds bytes (disc and RAM) and in red is the mysterious 4.2TB of "cached."

Code:
[i]ideamagnate@Almond:~$[/i][b] df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdd2             [color=yellow]1.9G[/color]  1.3G  464M  74% /
/dev/hdd7             [color=yellow]2.4G[/color]  1.6G  811M  66% /usr
/dev/md0               [color=yellow]51G[/color]   24G   28G  46% /mnt/raid
/dev/ram0             [color=yellow]1.9G[/color]  1.3G  464M  74% /mnt/ram
[/b][i]ideamagnate@Almond:~$[/i][b] cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  261427200 125456384 135970816        0 96641024  2678784
Swap: 140886016 36331520 104554496
MemTotal:       [color=yellow]255300 kB[/color]
MemFree:        132784 kB
MemShared:           0 kB
Buffers:         94376 kB
[color=red]Cached:       4294965444 kB[/color]
SwapCached:       4468 kB
Active:          44360 kB
Inactive:        62972 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255300 kB
LowFree:        132784 kB
SwapTotal:      [color=yellow]137584 kB[/color]
SwapFree:       102104 kB
[/b][i]ideamagnate@Almond:[/i]

While I was typing this up, I checked again, and the "cached" went down 6 orders of magnitude to about 8900 kB, and it's rising slowly and irregularly.
 
Cached shows the memory in the pagecache (diskcache) minus SwapCache, so it sounds like a bug, since I'm assuming that you don't actually have a 4.2TB or larger fileserver.

What happens when cached gets pretty big and you run sync a couple of times?

Also what kernel are you using? I was googling for your error and came across others that have experienced that same thing, but probably with a different kernel. http://marc.theaimsgroup.com/?l=linux-kernel&m=100470676801233&w=2 (Follow that thread down for more people commenting on the error.)

You could always try a new kernel and see if that fixes it.
 
That explains it. After I posted, I remembered that I was running a script that freed 10% of my RAM by making a ramdisk, filling it with zeroes and freeing the RAM. Nice googling, btw.
I'm using 2.4.22, so it looks like this bug still hasn't been fixed.
 
Back