This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Fix /proc/meminfo and /proc/swaps for >4GB
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 9 May 2011 09:55:14 +0200
- Subject: Re: [PATCH] Fix /proc/meminfo and /proc/swaps for >4GB
- References: <1304708638.5504.5.camel@YAAKOV04>
- Reply-to: cygwin-patches at cygwin dot com
Hi Yaakov,
On May 6 14:03, Yaakov (Cygwin/X) wrote:
> As promised, this patch ports the /proc/meminfo code to use sysinfo(2),
> and fixes the case where RAM or swap space totals more than 4GB. It
> also fixes the /proc/swaps code for paging files larger than 4GB.
>
> For example:
>
> $ cat /proc/meminfo
> total: used: free:
> Mem: 4293058560 1828151296 2464907264
> Swap: 12884901888 14680064 12870221824
> MemTotal: 4192440 kB
> MemFree: 2407136 kB
> MemShared: 0 kB
> HighTotal: 0 kB
> HighFree: 0 kB
> LowTotal: 4192440 kB
> LowFree: 2407136 kB
> SwapTotal: 12582912 kB
> SwapFree: 12568576 kB
I'm not sure I understand this new format. Why do you keep the Mem: and
Swap: lines? Linux doesn't have them and top appears to work without
them. And then, why do you print MemShared, HighTotal, and HighFree,
even though they are always 0, but not all the other ~40 lines Linux'
meminfo has, too?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat