Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: UNIX question du vs df -> large discrepancy

RE: UNIX question du vs df -> large discrepancy

From: Toepke, Kevin M <ktoepke_at_cms.cendant.com>
Date: Wed, 26 Jul 2000 12:24:01 -0400
Message-Id: <10570.113028@fatcity.com>


What is the OS block size? "df -k" reports the number of Kilobytes whereas "du" reports the number of OS blocks. If you are running most variants of UNIX (System V and variants), your OS block size is 512bytes. 1/2 of 936 is 468.

I have no idea about the remaining 12Kb.

Kevin

> -----Original Message-----
> From: Troiano, Paul (CAP, GEFA) [mailto:Paul.Troiano_at_gecapital.com]
> Sent: Wednesday, July 26, 2000 11:54 AM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: UNIX question du vs df -> large discrepancy
>
>
>
> No linked files. It only contains a couple of utility scripts
> that I put
> there. It would have to count them many times to make up the
> difference
> between 936 k and 480 MB.
>
> - Paul
>
>
>
> -----Original Message-----
> From: David Miller [mailto:djm_at_oregon.West.Sun.COM]
> Sent: Tuesday, July 25, 2000 4:48 PM
> To: Paul.Troiano_at_gecapital.com
> Subject: RE: UNIX question du vs df -> large
> discrepancy
>
> Hi Paul,
>
> Any linked files in this? I believe that du
> may count them
> twice.
>
> Dave Miller
>
> >From: "Troiano, Paul (CAP, GEFA)"
> <Paul.Troiano_at_gecapital.com>
> >To: "'David Miller'" <djm_at_oregon.west.sun.com>
> >Subject: RE: UNIX question du vs df -> large
> discrepancy
> >Date: Tue, 25 Jul 2000 18:44:26 -0400
> >
> >I used the k option...
> >
> >du -ds /opt/oracle
> >1872 /opt/oracle
> >
> >In 512 byte blocks = 936k which is equal to
> >
> >du -dsk /opt/oracle
> >936 /opt/oracle
> >
> >in kbytes
> >
> >but still very different than 480 MB...(also note the k
> option)
> >
> >df -k /opt/oracle
> >Filesystem kbytes used avail capacity
> Mounted on
> >/dev/vx/dsk/rootdg/Oraclefiles
> > 479982 479514 0 100%
> /opt/oracle
> >
> >- Paul
> >
> >
> > -----Original Message-----
> > From: David Miller
> [mailto:djm_at_oregon.West.Sun.COM]
> > Sent: Tuesday, July 25, 2000 4:35 PM
> > To: Paul.Troiano_at_gecapital.com
> > Subject: Re: UNIX
> question du vs df
> -> large
> >discrepancy
> >
> > Hi Paul,
> >
> > du specifies size in OS blocks, i.e. 512
> byte units. So du
> >is saying 936/2 or
> > 468 MB. So pretty close to the same.
> >
> > Dave Miller
> >
> > >Date: Tue, 25 Jul 2000 14:07:59 -0800
> > >To: Multiple recipients of
> list ORACLE-L
> ><ORACLE-L_at_fatcity.com>
> > >X-Comment: Oracle RDBMS Community Forum
> > >X-Sender: "Troiano, Paul (CAP, GEFA)"
> ><Paul.Troiano_at_gecapital.com>
> > >From: "Troiano, Paul (CAP, GEFA)"
> ><Paul.Troiano_at_gecapital.com>
> > >Subject: UNIX question du vs
> df -> large
> discrepancy
> > >X-ListServer: v1.0f, build 69;
> ListGuru (c)
> 1996-2000 Bruce
> >A. Bergman
> > >Mime-Version: 1.0
> > >Content-Transfer-Encoding: 7bit
> > >
> > >
> > >Any ideas? 936 kb vs 480 Mb is
> good size
> difference. It's
> >been like this for
> > >two days. du reflects what I see in the
> directories.
> > >
> > >df -k /opt/oracle
> > >Filesystem kbytes used
> avail capacity
> >Mounted on
> > >/dev/vx/dsk/rootdg/Oraclefiles
> > > 479982 479514
> 0 100%
> >/opt/oracle
> > >
> > >du -dsk /opt/oracle
> > >936 /opt/oracle
> > >
> > >
> > >- Paul
> > >--
> > >Author: Troiano, Paul (CAP, GEFA)
> > > INET: Paul.Troiano_at_gecapital.com
> > >
> > >Fat City Network Services -- (858)
> 538-5051 FAX: (858)
> >538-5051
> > >San Diego, California -- Public
> Internet access /
> >Mailing Lists
> >
>
> >>--------------------------------------------------------------------
> > >To REMOVE yourself from this
> mailing list,
> send an E-Mail
> >message
> > >to: ListGuru_at_fatcity.com (note EXACT
> spelling of
> >'ListGuru') and in
> > >the message BODY, include a line
> containing: UNSUB ORACLE-L
> > >(or the name of mailing list
> you want to be
> removed from).
> >You may
> > >also send the HELP command for other
> information (like
> >subscribing).
> --
> Author: Troiano, Paul (CAP, GEFA)
> INET: Paul.Troiano_at_gecapital.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
Received on Wed Jul 26 2000 - 11:24:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US