🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25974

Re: df usage wrong

#25974
From: 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.

Technical Details
Message-ID: <x4iuqp8klm.fsf@backbone.midwestcs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.development.system.mbox.zip!not-for-mail
References: <34DD77B9.6BAC482A@inode.at> <6bl34q$c87$1@gte2.gte.net> <6bl8kk$850$1@black.interact.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <x4iuqp8klm.fsf@backbone.midwestcs.com>
Subject: Re: df usage wrong
Date: Sun, 08 Feb 1998 00:00:00 +0000
From: Wayne Schlitt <wayne@midwestcs.com>
References: <34DD77B9.6BAC482A@inode.at> <6bl34q$c87$1@gte2.gte.net> <6bl8kk$850$1@black.interact.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.development.system.mbox.zip!not-for-mail
X-Deja-AN: 323324356
Sender: wayne@backbone.midwestcs.com
X-Server-Date: 9 Feb 1998 04:31:52 GMT
Organization: Midwest Computer Solutions
Newsgroups: comp.os.linux.development.system,news.software.nntp