Re: [DCR] Remove devstat

From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 06/14/05

  • Next message: Sue Howard: "Fwd: [DCR] Remove devstat"
    To: Sue Howard <howardsue@gmail.com>
    Date: Tue, 14 Jun 2005 13:44:02 +0200
    
    

    In message <1e89cd510506140433437f7b7@mail.gmail.com>, Sue Howard writes:
    >Hi,
    >
    >I found devstat is not widely used in the device drivers. Based the
    >grep result of 'devstat_new_entry', it shows only cam, ata, fd,
    >geom_disk are using it. In my workstation, the output of 'sysctl
    >kern.devstat' shows:

    >I am wondering if devstat can be replaced by the sysctl nodes %desc,
    >%pnpinfo etc that jhb introduced. Almost all the information devstat
    >can provide can be also exposed by such sysctl node.

    Uhm, are we confused here ?

    Devstat is what is used for collecting transaction statistics for
    disks and scsi general devices in general.

    Programs like iostat and gstat uses it.

    The old access path (iostat) uses sysctls, but the new and practically
    overhead free access path is mmap(2) which gstat uses.

    -- 
    Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
    phk@FreeBSD.ORG         | TCP/IP since RFC 956
    FreeBSD committer       | BSD since 4.3-tahoe    
    Never attribute to malice what can adequately be explained by incompetence.
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Sue Howard: "Fwd: [DCR] Remove devstat"

    Relevant Pages

    • [DCR] Remove devstat
      ... I found devstat is not widely used in the device drivers. ... grep result of 'devstat_new_entry', it shows only cam, ata, fd, ... I am wondering if devstat can be replaced by the sysctl nodes %desc, ...
      (freebsd-arch)
    • Fwd: [DCR] Remove devstat
      ... >>I found devstat is not widely used in the device drivers. ... Almost all the information devstat ... I am confused because, in the devstat.h file, it defines an enum ...
      (freebsd-arch)