Re: Strange memory stats with 2.4.13 and ext3

From: Jim Crilly (noth@noth.is.eleet.ca)
Date: Sat Oct 27 2001 - 18:18:25 EST


After seeing this I decided to take a look at a box I recently put
2.4.13+ext3(-pre6 + manually fixed .rej) and I got this:

        total: used: free: shared: buffers: cached:
Mem: 125820928 121167872 4653056 0 295002112
18446744073458835456
Swap: 536117248 4866048 531251200
MemTotal: 122872 kB
MemFree: 4544 kB
MemShared: 0 kB
Buffers: 288088 kB
Cached: 18446744073709305672 kB
SwapCached: 1104 kB
Active: 28832 kB
Inactive: 14416 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 122872 kB
LowFree: 4544 kB
SwapTotal: 523552 kB
SwapFree: 518800 kB

I only have 1 ext3 filesystem yet, because I was stress-testing the box
before I put it into real use.

/dev/sdb2 ext3 16G 33M 16G 1% /mnt/tmp

This box is a 167Mhz Ultra 1, 128M memory 512M swap. I ran bonnie++ on
the ext3 partition for about 15 hours and then let it sit idle for about
the same before I noticed this.

On Sat, 2001-10-27 at 16:08, Jeremy Fitzhardinge wrote:
> Hi,
>
> My gateway/firewall/mailserver machine has been running 2.4.13 for a day
> or so now. Its basically a stock Linus kernel + ext3-0.9.13 patch (for
> -pre6, with the rej fixed).
>
> I'm getting this in /proc/meminfo:
>
> total: used: free: shared: buffers: cached:
> Mem: 130179072 117489664 12689408 0 46854144 69632
> Swap: 1073987584 10907648 1063079936
> MemTotal: 127128 kB
> MemFree: 12392 kB
> MemShared: 0 kB
> Buffers: 45756 kB
> Cached: 4294965116 kB
> SwapCached: 2248 kB
> Active: 11392 kB
> Inactive: 36784 kB
> HighTotal: 0 kB
> HighFree: 0 kB
> LowTotal: 127128 kB
> LowFree: 12392 kB
> SwapTotal: 1048816 kB
> SwapFree: 1038164 kB
>
>
> Needless to say, this is unexpected. I do have 128MB of RAM and a gig
> of swap, but I certainly don't expect to see 4TB of cached stuff...
>
> I have a number of ext3 filesystems:
>
> /dev/root / ext3 rw 0 0
> /proc /proc proc rw 0 0
> /dev/hda3 /home ext3 rw 0 0
> /dev/hda5 /var ext3 rw,noatime 0 0
> none /dev/pts devpts rw 0 0
>
> /var is data=journal, the rest are data=ordered. /var also has a number
> of files and directories with the sync bit set.
>
> The machine doesn't seem to be misbehaving at all, and there's nothing
> unusual in the kernel log. It has not been under any particular load.
>
> I have another machine here running 2.4.13+ext3 for a few days now, and
> it has no oddities.
>
> UPDATE: now that I look at it again, it has fixed itself. How odd.
>
> J
> ----
>

-- deleted Jeremy's quoted .config --

-- 
Help protect your rights on-line.
Join the Electronic Frontiers Foundation today: http://www.eff.org/join
-----------------------------------------------------------------------
Security: Antonyms: See Microsoft
-----------------------------------------------------------------------
"We are coming after you. God may have mercy on you, but we won't,"
declared Sen. John McCain, R-Arizona.


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 31 2001 - 21:00:33 EST