Re: Q: How to get physical memory size from user space without procfs

2001-03-03 Thread Alexander Viro
On 3 Mar 2001, Michael Rothwell wrote: > pyhsmem = `free | grep Mem | tr -s "/ / /" | cut -f2 -d" "` % strace free 2>&1 |grep /proc open("/proc/cpuinfo", O_RDONLY) = 3 open("/proc/uptime", O_RDONLY) = 3 open("/proc/stat", O_RDONLY)= 4 open("/proc/meminfo",

Re: Q: How to get physical memory size from user space without procfs

2001-03-03 Thread Alexander Viro
On Sat, 3 Mar 2001, Denis Perchine wrote: > Hello, > > actually the question is in subj. > Problem is that there is a program which needs to know physical memory > size. This information is used to justify memory consumption as after some > swapping performance is drops dramatically, and it

Re: Q: How to get physical memory size from user space without procfs

2001-03-03 Thread Michael Rothwell
pyhsmem = `free | grep Mem | tr -s "/ / /" | cut -f2 -d" "` On 03 Mar 2001 13:37:42 -0500, Denis Perchine wrote: > Hello, > > actually the question is in subj. > Problem is that there is a program which needs to know physical memory > size. This information is used to justify memory

Re: Q: How to get physical memory size from user space without procfs

2001-03-03 Thread Alexander Viro
On Sat, 3 Mar 2001, Denis Perchine wrote: Hello, actually the question is in subj. Problem is that there is a program which needs to know physical memory size. This information is used to justify memory consumption as after some swapping performance is drops dramatically, and it is