Re: host-resources disk usage in bytes

"Deon van der Merwe" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,

On 1/9/07, Dave Shield <[email protected]> wrote:
> On 09/01/07, Deon van der Merwe <[email protected]> wrote:
> > According to net-snmp disk usage percentage is: 78.20%
> > Different than df, but df is also strange...
> > [dvdm@kaus] df -B4096
> > Filesystem           4K-blocks      Used Available Use% Mounted on
> > /dev/sda3              8517017   6661036   1423331  83% /
> >
> > Again it reports 83% use, but if you do the calculation yourself you
> > get: 78.20% which is the same as net-snmp... but what about this 83%
> > then?
>
> Traditionally, Unix filesystems have reserved a small percentage of the
> disk for "root-only" activity.  This is therefore not available for general use.
> You'll note that User+Available = 8084367,  which is not the same as the
> total size.
>      6661036/8084367 = 82.3%

Thanks for the pointer in the right direction.  The confirmation is in
the documentation:
================
man mke2fs
...
  -m reserved-blocks-percentage
    Specify the percentage of the filesystem blocks reserved for the
    super-user.  This avoids fragmentation, and allows root-owned daemons, such
    as syslogd(8),  to  continue  to function correctly after
non-privileged processes
    are prevented from writing to the filesystem.  The default percentage is 5%.
...
================

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.