Re: vmstat counter "bug"

From: Bruce M Simpson (bms_at_spc.org)
Date: 07/31/03

  • Next message: Andrew Kinney: "Re: vmstat counter "bug""
    Date: Thu, 31 Jul 2003 18:31:58 +0100
    To: Andrew Kinney <andykinney@advantagecom.net>
    
    
    

    Hi Andrew,

    On Thu, Jul 31, 2003 at 09:51:32AM -0700, Andrew Kinney wrote:
    > I'm sure this is probably just a limitation of the variable type used,
    > but when we run a 'vmstat -m' on our 4.8-RELEASE machine, we
    > get a negative integer on the "Requests" section of the memory
    > totals.

    The field you refer to does not exist under -CURRENT's vmstat(8) command.

    However, the attached patch should work for you. The bug is caused by
    a signed integer and printf format being used for the statistic in question,
    totreq. This is just a running total of what the vmstat(8) command is able
    to learn from vm_meter.c's exported sysctls.

    This is a fairly quick patch but you'll need to apply it from within
    /usr/src/usr.bin/vmstat, then run a make obj/make/make install.

    I've raised a PR on your behalf with the patch enclosed, it should reach
    GNATS any second.

    BMS

    
    
    

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



  • Next message: Andrew Kinney: "Re: vmstat counter "bug""

    Relevant Pages