🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
23 messages
23 total messages Started by Peter Augustin Sun, 08 Feb 1998 00:00
df usage wrong
#25972
Author: Peter Augustin
Date: Sun, 08 Feb 1998 00:00
23 lines
1233 bytes
Hi!

Please look at this:

readme:~$ df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/md0             23500763 21962138   268697     99%  
/var/news/spool/articles

Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.

Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
Bytes missing.

The machine is Linux 2.0.32 using the md Softraid System.

-- 

          Realname: Peter Augustin            EMail: acp@inode.at
          Homepage: http://www.inode.at/acp/    IRC: ACP #inode

Re: df usage wrong
#25963
Author: John and Lucy Hayward-Warburton
Date: Sun, 08 Feb 1998 00:00
23 lines
1626 bytes
Peter Augustin (acp@inode.at) wrote:
> Filesystem         1024-blocks  Used Available Capacity Mounted on
> /dev/md0             23500763 21962138   268697     99%  
> /var/news/spool/articles
> Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.
> Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
> Bytes missing.

ext2fs systems have a certain amount of disk space reserved for root
(the 'superuser') so that if an ordinary user on the system fills up
the disk, there's still space for root to move around and do some work.

When most Linux distributions install themselves, the routine that makes
the filesystem does indeed make this reservation.

What df is reporting is the percentage of free-space not including
this reserved space... so you're running as normal. No problems there.

JHW remove nospam to reply


Re: df usage wrong
#25970
Author: Dale Ghent
Date: Sun, 08 Feb 1998 00:00
24 lines
1482 bytes
Craig Kelley wrote:
> 
> In article <34DD77B9.6BAC482A@inode.at>, Peter Augustin  <acp@inode.at> wrote:
> 
> >Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
> >Bytes missing.
> 
> e2fs reserves 5% of a filesystem for root-only usage (so that you could
> still login and fix things.

This is usefull for things like your /, /usr, and /var partitions, but
is rather uneeded on your news-related partitions. On Linux, use tun2fs
to make this 0% and give yourself a bit more space... on most other OSes
its's tunefs.

			-Dale
-- 
Dale Ghent                        daleg @ digex.net
NetworkNews Administrator             DIGEX, Inc.
http://www.digex.net                Beltsville, MD
                    I speak for myself

Re: df usage wrong
#25973
Author: Trevor Fiatal
Date: Sun, 08 Feb 1998 00:00
34 lines
2025 bytes
On Sun, 08 Feb 1998 10:15:37 +0100, Peter Augustin <acp@inode.at>
spake thusly:

>readme:~$ df
>Filesystem         1024-blocks  Used Available Capacity Mounted on
>/dev/md0             23500763 21962138   268697     99%  
>/var/news/spool/articles
>
>Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.
>
>Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
>Bytes missing.

A certain percentage of every filesystem is reserved for use by root only.
This buys you two things: working space for your filesystem to place files
optimally, thus avoiding the need for defrag programs; and emergency working
room for the root user if emergency filesystem cleanup is needed.  Under
Solaris, the percentage is tunable; I don't recall whether Linux allows you to
change the value after creating the filesystem.

This is standard behaviour for every unix variant I've ever dealt with.
Perhaps you simply never noticed it before?

-Trevor

--
/--------------------------------=-------------------------------------\
|Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail |
|Internet Applications Architect | systems admin. Relocation available |
|@Home Network, SF Bay Area, CA  | for right candidate. Email for info.|
\--------------------------------|-------------------------------------/

Re: df usage wrong
#25974
Author: Wayne Schlitt
Date: Sun, 08 Feb 1998 00:00
47 lines
2475 bytes
In <6bl8kk$850$1@black.interact.net.au> tom@black.interact.net.au (tom minchin) writes:
> 
> Linux reserves about 5% which is probably a little excessive when you
> have 4 or 16 gig MD stripes (if that much space is needed for unlinked
> files, then you're on borrow time).


First, unlinked files count against the unreserved space, not against
the 5% reserve.

Secondly, the reserved space isn't just for use by root.  It is used
to keep the performance of the file system reasonably high.  When
Berkeley was designing their Fast File System, they found that the
performance of a active file system went down dramatically if the disk
regularly became more than 90% full.  So, they simply reserved the
last 10%.  When the Linux Ext2 file system was being built, this
feature was copied, but set at a default of around 5%.  I don't think
any studies were done.


The reason why it needs to be a constant x% is because what you are
doing is trying to guarantee that if you need to extend a file, there
will be an unused block "close by", so it can be accessed without
having to do a seek.  The size of the disk makes no difference here.
The percentage of reserved disk space needed is a function of how many
sectors there are in the same "cylinder".  Over the years, the number
of patters has decreased, but the number of sectors per track has
increased.

My guess is that you still need 5-10% of the disk free to keep
performance from going through the floor.

Of course, doing actual, well thought out, timing studies would be a
good idea, but...


-wayne




-- 
Wayne Schlitt can not assert the truth of all statements in this
article and still be consistent.

Re: df usage wrong
#25976
Author: Craig Kelley
Date: Sun, 08 Feb 1998 00:00
16 lines
1043 bytes
In article <34DD77B9.6BAC482A@inode.at>, Peter Augustin  <acp@inode.at> wrote:

>Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
>Bytes missing.

e2fs reserves 5% of a filesystem for root-only usage (so that you could
still login and fix things.

-- 
ASCII stupid question, get a stupid ANSI
Craig Kelley  --  kellcrai@isu.edu
http://www.isu.edu/~kellcrai finger ink@inconnu.isu.edu for PGP block


Re: df usage wrong
#25979
Author: gerald clark
Date: Sun, 08 Feb 1998 00:00
36 lines
1699 bytes
Peter Augustin wrote:
> 
> Hi!
> 
> Please look at this:
> 
> readme:~$ df
> Filesystem         1024-blocks  Used Available Capacity Mounted on
> /dev/md0             23500763 21962138   268697     99%
> /var/news/spool/articles
> 
> Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.
> 
> Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
> Bytes missing.
> 
> The machine is Linux 2.0.32 using the md Softraid System.
> 
> --
> 
>           Realname: Peter Augustin            EMail: acp@inode.at
>           Homepage: http://www.inode.at/acp/    IRC: ACP #inode
Some blocks are reserved for super user.
Everyone else gets a disk full, but root can login and move/delete
files,
and generally clean up. Some room has to be set aside as not available
to
non root, or root couldn't even login.

Another good reason not to use the root login unless absolutely
necessary!
-- 
Remove the -bogus- portions of my return address!

Re: df usage wrong
#25982
Author: Terry L Ridder
Date: Sun, 08 Feb 1998 00:00
48 lines
2053 bytes
Peter Augustin wrote:
> 
> Hi!
> 
> Please look at this:
> 
> readme:~$ df
> Filesystem         1024-blocks  Used Available Capacity Mounted on
> /dev/md0             23500763 21962138   268697     99%
> /var/news/spool/articles
> 
> Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.
> 
> Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
> Bytes missing.
> 
> The machine is Linux 2.0.32 using the md Softraid System.
> 
> --
> 
>           Realname: Peter Augustin            EMail: acp@inode.at
>           Homepage: http://www.inode.at/acp/    IRC: ACP #inode

First off the numbers returned by 'df' are 1024-blocks not bytes.
If you desire bytes you need to take the numbers and multiply by
1024.

Linux reserves disk space for root, which is why sometimes
when 'df' is run you will see Capacity > 100%.

If you take 1,269,928 / 23,500,763 == .0540 or roughly 5.4%
is reserved, which would be about normal.

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

 When the toast is burnt
 and all the milk has turned
 and Captain Crunch is waving goodbye
 when the Big One finds you
 may this song remind you that they 
 don't serve breakfast in hell
 ==Breakfast==Newsboys

Re: df usage wrong
#25988
Author: Ian Stirling
Date: Mon, 09 Feb 1998 00:00
35 lines
2958 bytes
In news.software.nntp mumford <mumford@netcom.com> wrote:
: In article <000034DE49BB.NO_UCE@mauve.demon.co.uk>,
: Ian Stirling  <000034DE49BB.NO_UCE@mauve.demon.co.uk> wrote:
:>In news.software.nntp tom minchin <tom@black.interact.net.au> wrote:
:>: Terry L Ridder <terrylr@tbcnet.com> writes:
:>:>First off the numbers returned by 'df' are 1024-blocks not bytes.
:>:>If you desire bytes you need to take the numbers and multiply by
:>
:>: Linux reserves about 5% which is probably a little excessive when you
:>: have 4 or 16 gig MD stripes (if that much space is needed for unlinked
:>: files, then you're on borrow time).
:>
:>
:>It's there for a reason, it reduces fragmentation, which is always a
                  ^nother
:>good thing, especially in a news-server.

If you reduce the amount to 0%, then might you not find that instead of 
running out of disk space, instead, as fragmentation gets out of hand, 
writes start taking so long that the news-server effectively stalls.

: Uh, no.  It's there so a sysadmin will have room in which to work should
: the fs fill up for standard users.  ext2 will use *any* available space for
: defragmentation.  When the filesystem fills up, the sysadmin has a lot more
: to worry about than fragmentation.

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
----- ******* If replying by email, check notices in header ******* -----
Prosperity and ruin issue from the power of the tongue.
Therefore, guard yourself against thoughtless speech.


Re: df usage wrong
#25989
Author: Hans J Jakobsen
Date: Mon, 09 Feb 1998 00:00
52 lines
2711 bytes
Wayne Schlitt <wayne@midwestcs.com> writes:

>In <6bl8kk$850$1@black.interact.net.au> tom@black.interact.net.au (tom minchin) writes:

>My guess is that you still need 5-10% of the disk free to keep
>performance from going through the floor.

>Of course, doing actual, well thought out, timing studies would be a
>good idea, but...

I had made a typo in the expire.ctl so I have got some figures.
The system is Solaris 2.6 (Sparc Enterprice 450, 2 CPU)
The spool is 64G (128M blocks) (16*4G, stripe size 16 cyl)
Filesystem is UFS with fastfs

         Free
        space blk	artwrite idle	#idle	Write   #writes
                         ms         ms  loops    time
14:44:27 17578192	23,89	184950	71356	45026	1885
15:44:28 16543716	25,83	172285	68781	54140	2096
16:44:29 15521296	27,32	181307	63142	52450	1920
17:44:29 14332980	29,55	175943	64409	57740	1954
18:44:29 13443406	26,61	164829	70771	62713	2357
19:44:30 12199540	28,20	153756	73968	68227	2419
20:44:30 11137200	26,39	131132	88019	72948	2764
21:44:31 10107576	28,25	156701	55627	66745	2363
22:44:31  9143874 	30,26	133067	65620	85237	2817
23:44:32  8125570 	34,38	160397	49779	71063	2067
00:44:32  7112340 	35,11	159318	49090	69658	1984
01:44:33  5925808 	37,52	135732	51284	84448	2251
02:44:34  4658866 	47,24	171714	61041	70665	1496
03:44:34  3295794 	49,20	91183	58607	127537	2592
04:44:39  2121472 	182,55	464	1684	266346	1459
05:44:51  2035926 	176,52	50	339	268309	1520
06:45:15  1965742 	233,57	34	245	271870	1164
07:45:35  1897192 	280,39	34	260	273100	974
08:46:09  1824180 	171,19	49	355	260385	1521


The last 5 coloums is figures from timers output from INN.
It looks like write times raises drastical between 3 and 2 million
free blocks.
/hjj

-- 
Tele Danmark Erhverv, Data Divisionen      TLF: +45 8947 3339
Hans J Jakobsen                            FAX: +45 8947 3308
Skanderborgvej 234 st tv
DK 8620 Viby J    Danmark             Internet:hjj@datacom.dk400.dk

Re: df usage wrong
#25998
Author: Wayne Schlitt
Date: Mon, 09 Feb 1998 00:00
22 lines
1356 bytes
In <34DE5C91.2C394DDD@digex.net> Dale Ghent <daleg@digex.net> writes:
> 
> This is usefull for things like your /, /usr, and /var partitions, but
> is rather uneeded on your news-related partitions. On Linux, use tun2fs
> to make this 0% and give yourself a bit more space... on most other OSes
> its's tunefs.


This is probably very bad advise, unless you like having a very slow
file system.  You need the free space to keep fragmentation from
setting in.


-wayne


-- 
Wayne Schlitt can not assert the truth of all statements in this
article and still be consistent.

Re: df usage wrong
#26000
Author: mumford
Date: Mon, 09 Feb 1998 00:00
29 lines
1949 bytes
In article <000034DE49BB.NO_UCE@mauve.demon.co.uk>,
Ian Stirling  <000034DE49BB.NO_UCE@mauve.demon.co.uk> wrote:
>In news.software.nntp tom minchin <tom@black.interact.net.au> wrote:
>: Terry L Ridder <terrylr@tbcnet.com> writes:
>:>First off the numbers returned by 'df' are 1024-blocks not bytes.
>:>If you desire bytes you need to take the numbers and multiply by
>
>: Linux reserves about 5% which is probably a little excessive when you
>: have 4 or 16 gig MD stripes (if that much space is needed for unlinked
>: files, then you're on borrow time).
>
>
>It's there for a reason, it reduces fragmentation, which is always a
>good thing, especially in a news-server.


Uh, no.  It's there so a sysadmin will have room in which to work should
the fs fill up for standard users.  ext2 will use *any* available space for
defragmentation.  When the filesystem fills up, the sysadmin has a lot more
to worry about than fragmentation.

-- 
Glenn Lamb - mumford@netcom.com.  Finger for my PGP Key.
Email to me must have my address in either the To: or Cc: field.  All other
mail will be bounced automatically as spam.
PGPprint = E3 0F DE CC 94 72 D1 1A  2D 2E A9 08 6B A0 CD 82

Re: df usage wrong
#26011
Author: Ian Stirling
Date: Mon, 09 Feb 1998 00:00
22 lines
2125 bytes
In news.software.nntp tom minchin <tom@black.interact.net.au> wrote:
: Terry L Ridder <terrylr@tbcnet.com> writes:
:>First off the numbers returned by 'df' are 1024-blocks not bytes.
:>If you desire bytes you need to take the numbers and multiply by

: Linux reserves about 5% which is probably a little excessive when you
: have 4 or 16 gig MD stripes (if that much space is needed for unlinked
: files, then you're on borrow time).


It's there for a reason, it reduces fragmentation, which is always a
good thing, especially in a news-server.

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
----- ******* If replying by email, check notices in header ******* -----
Things a surgeon should never say.
Better save that for the autopsy.


Re: df usage wrong
#26016
Author: Peter Augustin
Date: Mon, 09 Feb 1998 00:00
18 lines
1325 bytes
tom minchin schrieb:

> Linux reserves about 5% which is probably a little excessive when you
> have 4 or 16 gig MD stripes (if that much space is needed for unlinked
> files, then you're on borrow time).

Are these 5% really necessary on a newsspool? 

Now, I understand that its fine for a root Partition or any other
'working' Part of Linux, but I wonder why I lose 5% on a dumb newsspool.

-- 

          Realname: Peter Augustin            EMail: acp@inode.at
          Homepage: http://www.inode.at/acp/    IRC: ACP #inode

Re: df usage wrong
#26018
Author: tom minchin
Date: Mon, 09 Feb 1998 00:00
19 lines
1363 bytes
Terry L Ridder <terrylr@tbcnet.com> writes:
>First off the numbers returned by 'df' are 1024-blocks not bytes.
>If you desire bytes you need to take the numbers and multiply by
>1024.
>Linux reserves disk space for root, which is why sometimes
>when 'df' is run you will see Capacity > 100%.
>If you take 1,269,928 / 23,500,763 == .0540 or roughly 5.4%
>is reserved, which would be about normal.

Linux reserves about 5% which is probably a little excessive when you
have 4 or 16 gig MD stripes (if that much space is needed for unlinked
files, then you're on borrow time).

You can use tune2fs -m 1 <device> to reduce the reserved space to 1%.

tom@interact.net.au

Re: df usage wrong
#26028
Author: Wayne Schlitt
Date: Mon, 09 Feb 1998 00:00
59 lines
2634 bytes
In <6bmimc$3ks$1@news1.tele.dk> hjj@news1.tele.dk (Hans J Jakobsen) writes:

: Wayne Schlitt <wayne@midwestcs.com> writes:
: >My guess is that you still need 5-10% of the disk free to keep
: >performance from going through the floor.
: 
: >Of course, doing actual, well thought out, timing studies would be a
: >good idea, but...
: 
: I had made a typo in the expire.ctl so I have got some figures.

Thanks!

: The system is Solaris 2.6 (Sparc Enterprice 450, 2 CPU)
: The spool is 64G (128M blocks) (16*4G, stripe size 16 cyl)
: Filesystem is UFS with fastfs
:
: [summary:
:  17578192 down to 9143874 blocks,  seek times ranged from
:  23,89-30,26 ms
:
:  8125570 down to 5925808 blocks, seek times range from
: 34,38-37,52 ms ]
:
: 02:44:34  4658866 	47,24	171714	61041	70665	1496
: 03:44:34  3295794 	49,20	91183	58607	127537	2592
: 04:44:39  2121472 	182,55	464	1684	266346	1459
: 05:44:51  2035926 	176,52	50	339	268309	1520
: 06:45:15  1965742 	233,57	34	245	271870	1164
: 07:45:35  1897192 	280,39	34	260	273100	974
: 08:46:09  1824180 	171,19	49	355	260385	1521
: 
: The last 5 coloums is figures from timers output from INN.
: It looks like write times raises drastical between 3 and 2 million
: free blocks.

A couple of notes:

1) 2-3 million free blocks is about 2.5/128 ~= 2% free.

2) things start getting noticably worse at 5-8 million free blocks, or
   6/128 ~= 5%

3) the file system was not run in this "over full" state for long
   periods of times, so fragmentation didn't really have a chance to
   set it.


-wayne

p.s. sorry for the quantity of quoting, but I thought real data could
      use being repeated...

-- 
Wayne Schlitt can not assert the truth of all statements in this
article and still be consistent.

Re: df usage wrong
#26053
Author: Michael Salmon
Date: Tue, 10 Feb 1998 00:00
25 lines
1702 bytes
Peter Augustin wrote:
> 
> tom minchin schrieb:
> 
> > Linux reserves about 5% which is probably a little excessive when you
> > have 4 or 16 gig MD stripes (if that much space is needed for unlinked
> > files, then you're on borrow time).
> 
> Are these 5% really necessary on a newsspool?
> 
> Now, I understand that its fine for a root Partition or any other
> 'working' Part of Linux, but I wonder why I lose 5% on a dumb newsspool.

A Unix filesystem is more like a hash table than anything else, you can
use a full hash table if you like but it stops being a hash table and
becomes an unordered array with the appropriate search times. If you
don't want to waste the 5% reduce it 1% or even 0%, who knows it might
be OK in your case, though that is typically not the case in newsspools.

/Michael
-- 
This space intentionally left non-blank.

Re: df usage wrong
#26064
Author: Peter Augustin
Date: Tue, 10 Feb 1998 00:00
21 lines
1636 bytes
Michael Salmon schrieb:

> > Now, I understand that its fine for a root Partition or any other
> > 'working' Part of Linux, but I wonder why I lose 5% on a dumb newsspool.
> 
> A Unix filesystem is more like a hash table than anything else, you can
> use a full hash table if you like but it stops being a hash table and
> becomes an unordered array with the appropriate search times. If you
> don't want to waste the 5% reduce it 1% or even 0%, who knows it might
> be OK in your case, though that is typically not the case in newsspools.

Is there a kind of df over this reserved part of the disk? I want to
know how much it is used.

-- 

          Realname: Peter Augustin            EMail: acp@inode.at
          Homepage: http://www.inode.at/acp/    IRC: ACP #inode

Re: df usage wrong
#26075
Author: gerald clark
Date: Tue, 10 Feb 1998 00:00
30 lines
2032 bytes
Wayne Schlitt wrote:
> 
> In <6bl8kk$850$1@black.interact.net.au> tom@black.interact.net.au (tom minchin) writes:
> >
> > Linux reserves about 5% which is probably a little excessive when you
> > have 4 or 16 gig MD stripes (if that much space is needed for unlinked
> > files, then you're on borrow time).
> 
> First, unlinked files count against the unreserved space, not against
> the 5% reserve.
> 
> Secondly, the reserved space isn't just for use by root.  It is used
> to keep the performance of the file system reasonably high.  When
> Berkeley was designing their Fast File System, they found that the
> performance of a active file system went down dramatically if the disk
> regularly became more than 90% full.  So, they simply reserved the
> last 10%.  When the Linux Ext2 file system was being built, this
> feature was copied, but set at a default of around 5%.  I don't think
> any studies were done.
> 
>-- 
Thanls for providing the added information.
My point was that the numbers were not wrong, but that a percentage was
reserved.
By the way I have seen root bring the percentage used up to 1-5%.
Then BAM!
Remove the -bogus- portions of my return address!

Re: df usage wrong
#26077
Author: Wayne Schlitt
Date: Tue, 10 Feb 1998 00:00
29 lines
1733 bytes
In <34DE6D7C.15D05149@inode.at> Peter Augustin <acp@inode.at> writes:

> Are these 5% really necessary on a newsspool? 
> 
> Now, I understand that its fine for a root Partition or any other
> 'working' Part of Linux, but I wonder why I lose 5% on a dumb newsspool.

Yes, it is necessary because the news spool is a *very* active file
system.  You are much better off cutting your expire time down a
little and "wasting" 5-10% of the disk than trying to use every last
byte.


There has been a fair amount of discussion about the write speed (or
lack there of) on a fragmented file system, but it also goes for the
read speed and there are a lot more readers than writers.  If the
directory entries and the files can't be put "close" together, then
you are going to be doing nothing but seeking.


-wayne


-- 
Wayne Schlitt can not assert the truth of all statements in this
article and still be consistent.

Re: df usage wrong
#26094
Author: Michael Salmon
Date: Wed, 11 Feb 1998 00:00
33 lines
2130 bytes
Peter Augustin wrote:
> 
> Michael Salmon schrieb:
> 
> > > Now, I understand that its fine for a root Partition or any other
> > > 'working' Part of Linux, but I wonder why I lose 5% on a dumb newsspool.
> >
> > A Unix filesystem is more like a hash table than anything else, you can
> > use a full hash table if you like but it stops being a hash table and
> > becomes an unordered array with the appropriate search times. If you
> > don't want to waste the 5% reduce it 1% or even 0%, who knows it might
> > be OK in your case, though that is typically not the case in newsspools.
> 
> Is there a kind of df over this reserved part of the disk? I want to
> know how much it is used.

There isn't any reserved part. When you get to 100% ordinary users can't
allocate more space even though there is free space left on the disk.
The usual df shows this:

Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t3d0s0      38383   33585    4760    88%    /
/dev/dsk/c0t3d0s7     529294  435235   93530    83%    /usr

For / the sum of used and avail is 38K less than the total i.e. 1% is
unavailable. That 1% can be anywhere.

/Michael
-- 
This space intentionally left non-blank.

Re: df usage wrong
#26117
Author: bengel
Date: Wed, 11 Feb 1998 00:00
16 lines
1198 bytes
In comp.os.linux.development.system Peter Augustin <acp@inode.at> wrote:
> Add 21,962,138 and 268,697 -> its 22,230,835 Bytes.

> Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
> Bytes missing.

it's reserved space for root. e.g. normal.


-- 
Grobbebol's Home                 |      Don't give in to spammers.
http://www.xs4all.nl/~bengel     |     Use your real e-mail address
Linux 2.0.33  on  an i586/64 MB  |             on Usenet.

Re: df usage wrong
#26203
Author: Nick Kean - IHUG Staff
Date: Fri, 13 Feb 1998 00:00
27 lines
1618 bytes
In article <6bm61m$v23$1@inconnu.isu.edu>, Craig Kelley wrote:
>In article <34DD77B9.6BAC482A@inode.at>, Peter Augustin  <acp@inode.at> wrote:
>
>>Why says df 23,500,763 and not 22,230,835 Bytes? There are 1,269,928
>>Bytes missing.
>
>e2fs reserves 5% of a filesystem for root-only usage (so that you could
>still login and fix things.

  Actually it doens't have to be root who gets the benifits of the reserved
space, it just happens to be root by default.  You could make it "news" if
you wanted.

From tune2fs(8) :
       -u user
           set the user who  can  benefit  from  the  reserved
           blocks.   user  can  be  a  numerical uid or a user
           name.


-- 
There is a saying among trial lawyers: "Never ask a question unless you are
  already sure of the answer". For computer scientists, it reads: "Unless you
  know what to do with a error condition, never test for it"

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads