Re: systat -vm output showing negative total virtual memory

2006-11-19 Thread Alan Cox
The change to vm_meter.c is ok. Could you please add a comment like that above the location of the patch. Alan ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to

Re: systat -vm output showing negative total virtual memory

2006-11-17 Thread Ruslan Ermilov
On Fri, Nov 17, 2006 at 01:38:00AM +0300, Ruslan Ermilov wrote: Actually, the values are also in pages. Below is a new patch to try. The total amount of virtual memory reported is still insane; I think some objects are included in the stats mistakenly, but I'm not yet sure. Okay, the

systat -vm output showing negative total virtual memory

2006-11-16 Thread Ulrich Spoerlein
Hi all, this is on a two week old RELENG_6. The machine has 4GB RAM, SMP CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3012.12-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf43 Stepping = 3 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUS

Re: systat -vm output showing negative total virtual memory

2006-11-16 Thread Ruslan Ermilov
On Thu, Nov 16, 2006 at 11:55:09AM +0100, Ulrich Spoerlein wrote: Hi all, this is on a two week old RELENG_6. The machine has 4GB RAM, SMP CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3012.12-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf43 Stepping = 3

Re: systat -vm output showing negative total virtual memory

2006-11-16 Thread Ulrich Spoerlein
Ruslan Ermilov wrote: sysctl(8) knows that t_vm is in bytes, but for the other stats it thinks they are in pages. systat -vm thinks they are all in bytes. Here's a fix: Thanks!, I applied your patch to RELENG_6 # sysctl vm.vmtotal ; ./sysctl vm.vmtotal vm.vmtotal: System wide totals

Re: systat -vm output showing negative total virtual memory

2006-11-16 Thread Ruslan Ermilov
On Thu, Nov 16, 2006 at 08:10:37PM +0100, Ulrich Spoerlein wrote: Ruslan Ermilov wrote: sysctl(8) knows that t_vm is in bytes, but for the other stats it thinks they are in pages. systat -vm thinks they are all in bytes. Here's a fix: Thanks!, I applied your patch to RELENG_6 22K