Re: Top reports wrong memoryuse

2006-07-24 Thread Corinna Vinschen
On Jul 24 11:25, Chris January wrote: > >It would be possible to change /proc/*/stat{m} to use the page size > >of 64K, but this would make the values in those files imprecise. It > >might be better just to change top. > > I'll see if I can patch top to get these right. IIRC there is a > constant

Re: Top reports wrong memoryuse

2006-07-24 Thread Chris January
It would be possible to change /proc/*/stat{m} to use the page size of 64K, but this would make the values in those files imprecise. It might be better just to change top. I'll see if I can patch top to get these right. IIRC there is a constant defined somewhere with the correct page size. Chr

Re: Top reports wrong memoryuse

2006-07-24 Thread Corinna Vinschen
On Jul 21 19:21, Bengt-Arne Fjellner wrote: > Hi first of all thanks for a wonderful set of programs. > > Now the problem: > Top reports 16*the memory used for a process. Also in percent its wrong. > It uses the pagesize from getpagesize()*first field of /proc/*/statm > Which is wrong /proc/*/stat