public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrey Gerasimenko" <gak@kaluga.ru>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: Separate /usr
Date: Fri, 11 May 2007 09:51:37 +0400	[thread overview]
Message-ID: <op.tr5ekby2v2ynd8@pavillion> (raw)
In-Reply-To: <20070510163603.5d3836e4@pascal.spore.ath.cx>

On Fri, 11 May 2007 01:36:03 +0400, Dan Farrell <dan@spore.ath.cx> wrote:

> On Thu, 10 May 2007 11:34:46 +0100
> Neil Bothwick <neil@digimed.co.uk> wrote:
>
>> On Thu, 10 May 2007 12:11:34 +0200, Benno Schulenberg wrote:
>>
>> > > No idea, but I tried it when I encountered that page and portage
>> > > operations were measurably faster.
>> >
>> > That might well be just the transfer effect: you went from an old
>> > fragmented file system to a fresh unfragmented one.
>>
>> I allowed for that. I created a new filesystem for /usr/portage - I
>> had been using a directory in /usr before.
>>
>>
> Well, maybe it has to do with the efficiency of reading discontiguous
> blocks from one file as opposed to a filesystem.  Since it's a sparse
> file, there might be a lot of 'space' that, if it were on an actual
> disk, the heads would have to pass over; thus there may be a way in
> which a sparse file is more efficient than a regular filesystem.
>
> Remeber that the files in portage are, except for distfiles, quite
> small.  By my calculation, the average size for files and directories
> under $PORTDIR (excluding $DISTDIR of course) is only 62 bytes.  What
> would you bet that on a disk partition, the other 962 to 4034 bytes per
> block (I couldn't have block sizes less than 1K on reiser for my
> portage, and 4096 is the default for most FS's) are filled with
> nothing, and the heads need to pass over them to read the next block.
> On a sparse file that space is merely reserved, it needn't actually
> exist.   Hope that helps you conceptualize the difference.

I guess the idea is correct, but the details are questionable. The heads  
do not move over empty tails, the spinning disk does. A head just moves to  
the track that contains the required sectors. The head movement and disk  
spinning do not influence performance directly since there are many levels  
of caching between a physical read and an application.

It looks like it takes much less buffer space to cache lots of small files  
when they are joined into a sparse file than when they are in a real file  
system, making sparse file very efficient.

-- 
Andrei Gerasimenko
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2007-05-11  5:59 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 23:56 [gentoo-user] Clock is way off Grant
2007-05-09  5:28 ` AJ Spagnoletti
2007-05-09  6:55 ` [gentoo-user] " Anno v. Heimburg
2007-05-09 14:27   ` Grant
2007-05-09 14:54     ` Neil Bothwick
2007-05-09 15:45       ` Grant
2007-05-09 16:12       ` Redouane Boumghar
2007-05-09 17:05         ` Dale
2007-05-09 17:17           ` Uwe Thiem
2007-05-09 17:28           ` Neil Bothwick
2007-05-09 17:53             ` [gentoo-user] Separate /usr [was: Clock is way off] Benno Schulenberg
2007-05-09 18:19               ` Neil Bothwick
2007-05-09 18:29               ` Randy Barlow
2007-05-09 18:34               ` Albert Hopkins
2007-05-09 18:54               ` Daniel Iliev
2007-05-09 20:03                 ` Neil Bothwick
2007-05-09 21:21                   ` Daniel Iliev
2007-05-09 21:37                     ` Neil Bothwick
2007-05-10  6:56                       ` Naga
2007-05-10  8:20                         ` Neil Bothwick
2007-05-09 21:22                   ` Boyd Stephen Smith Jr.
2007-05-09 21:52                     ` Mick
2007-05-09 21:49               ` darren kirby
2007-05-09 23:01                 ` Bo Ørsted Andresen
2007-05-09 23:31                   ` Neil Bothwick
2007-05-10  2:16                   ` Aleksandar L. Dimitrov
2007-05-10  7:28                   ` Alan McKinnon
2007-05-09 23:06                 ` Neil Bothwick
2007-05-10  0:31                   ` darren kirby
2007-05-10  0:55                     ` Neil Bothwick
2007-05-10  2:01                       ` darren kirby
2007-05-10  7:31                   ` Alan McKinnon
2007-05-10  8:24                     ` Neil Bothwick
2007-05-10  8:41                       ` [gentoo-user] Re: Separate /usr Alexander Skwar
2007-05-10  9:40                         ` Neil Bothwick
2007-05-10 10:11                           ` Benno Schulenberg
2007-05-10 10:34                             ` Neil Bothwick
2007-05-10 21:36                               ` Dan Farrell
2007-05-11  5:51                                 ` Andrey Gerasimenko [this message]
2007-05-09 18:54             ` [gentoo-user] Re: Clock is way off Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.tr5ekby2v2ynd8@pavillion \
    --to=gak@kaluga.ru \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox