* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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
` (3 subsequent siblings)
4 siblings, 0 replies; 40+ messages in thread
From: Neil Bothwick @ 2007-05-09 18:19 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
On Wed, 09 May 2007 19:53:08 +0200, Benno Schulenberg wrote:
> > You are not supposed to link it any more, because that will break
> > if /usr has not yet been mounted.
>
> Are there (still) people who have /usr on a separate partition?
> And if so, why?
I do, because everything but / and /boot is on LVM.
Even if you don't have a separate /usr, the current method is far easier
to maintain because your timezone is set in one of the standard
configuration files rather than a symlink somewhere else.
--
Neil Bothwick
"I am Homer of the Borg. You will be assim.... Hmm... Donuts..."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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
` (2 subsequent siblings)
4 siblings, 0 replies; 40+ messages in thread
From: Randy Barlow @ 2007-05-09 18:29 UTC (permalink / raw
To: gentoo-user
Benno Schulenberg wrote:
> Are there (still) people who have /usr on a separate partition?
> And if so, why?
>
> I only have /home and /usr/portage on separate partitions,
> everything else is on /, even /boot.
I have /usr on a separate lvm device just so I can shift around drive
space (my gentoo machine is an older machine with not a ton of HD space,
so the ability to change the sizes of different volumes is great!)
R
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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 21:49 ` darren kirby
4 siblings, 0 replies; 40+ messages in thread
From: Albert Hopkins @ 2007-05-09 18:34 UTC (permalink / raw
To: gentoo-user
On Wed, 2007-05-09 at 19:53 +0200, Benno Schulenberg wrote:
> Are there (still) people who have /usr on a separate partition?
> And if so, why?
Because if you've got a lab full of similarly-configured workstations or
a forward-facing cluster of load-balancing servers, it may be more
convenient to have them all mount /usr, /home, etc. from a
centrally-managed file server.
--
Albert W. Hopkins
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 17:53 ` [gentoo-user] Separate /usr [was: Clock is way off] Benno Schulenberg
` (2 preceding siblings ...)
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:49 ` darren kirby
4 siblings, 1 reply; 40+ messages in thread
From: Daniel Iliev @ 2007-05-09 18:54 UTC (permalink / raw
To: gentoo-user
On Wed, 09 May 2007 19:53:08 +0200
Benno Schulenberg <benno.schulenberg@gmail.com> wrote:
>
> Are there (still) people who have /usr on a separate partition?
> And if so, why?
>
Yes, I'm one of those.
Some say it gives performance boost (I'm not sure about it), but more
importantly it gives (partial) protection from file system damage. How
come? The partitions with most frequent writes are those
containing /var /home and /tmp. In case of power failure or system
lock-up the chances are better that a file system not taking writes at
the moment would survive the crash. Following this logic and since /usr
contains most of the programs and /bin & /sbin contain most of the
basic OS, those should reside on partitions with rare writes.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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:22 ` Boyd Stephen Smith Jr.
0 siblings, 2 replies; 40+ messages in thread
From: Neil Bothwick @ 2007-05-09 20:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
Hello Daniel Iliev,
> Some say it gives performance boost (I'm not sure about it), but more
> importantly it gives (partial) protection from file system damage. How
> come? The partitions with most frequent writes are those
> containing /var /home and /tmp. In case of power failure or system
> lock-up the chances are better that a file system not taking writes at
> the moment would survive the crash. Following this logic and since /usr
> contains most of the programs and /bin & /sbin contain most of the
> basic OS, those should reside on partitions with rare writes.
You could also argue that /usr needs the least protection from filesystem
damage, because it contains no data. /usr can be repaired with
a reinstall, unlike /var, /home or /etc.
--
Neil Bothwick
"They that can give up essential liberty to obtain a little
temporary safety, deserve neither liberty nor safety."
Benjamin Franklin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 20:03 ` Neil Bothwick
@ 2007-05-09 21:21 ` Daniel Iliev
2007-05-09 21:37 ` Neil Bothwick
2007-05-09 21:22 ` Boyd Stephen Smith Jr.
1 sibling, 1 reply; 40+ messages in thread
From: Daniel Iliev @ 2007-05-09 21:21 UTC (permalink / raw
To: gentoo-user
On Wed, 9 May 2007 21:03:58 +0100
Neil Bothwick <neil@digimed.co.uk> wrote:
> Hello Daniel Iliev,
>
> > Some say it gives performance boost (I'm not sure about it), but
> > more importantly it gives (partial) protection from file system
> > damage. How come? The partitions with most frequent writes are those
> > containing /var /home and /tmp. In case of power failure or system
> > lock-up the chances are better that a file system not taking writes
> > at the moment would survive the crash. Following this logic and
> > since /usr contains most of the programs and /bin & /sbin contain
> > most of the basic OS, those should reside on partitions with rare
> > writes.
>
> You could also argue that /usr needs the least protection from
> filesystem damage, because it contains no data. /usr can be repaired
> with a reinstall, unlike /var, /home or /etc.
>
>
That's a good point.
Only for the sake of arguing: those need no FS protection, but
recent back-ups :)
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 21:21 ` Daniel Iliev
@ 2007-05-09 21:37 ` Neil Bothwick
2007-05-10 6:56 ` Naga
0 siblings, 1 reply; 40+ messages in thread
From: Neil Bothwick @ 2007-05-09 21:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
On Thu, 10 May 2007 00:21:06 +0300, Daniel Iliev wrote:
> > You could also argue that /usr needs the least protection from
> > filesystem damage, because it contains no data. /usr can be repaired
> > with a reinstall, unlike /var, /home or /etc.
> That's a good point.
>
> Only for the sake of arguing: those need no FS protection, but
> recent back-ups :)
Recent is never recent enough. I used to think daily backups were fine,
until a failure at 5pm cost me a day's work :(
--
Neil Bothwick
Forget the Joneses...I can't keep up with The Simpsons.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 20:03 ` Neil Bothwick
2007-05-09 21:21 ` Daniel Iliev
@ 2007-05-09 21:22 ` Boyd Stephen Smith Jr.
2007-05-09 21:52 ` Mick
1 sibling, 1 reply; 40+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-05-09 21:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
On Wednesday 09 May 2007, Neil Bothwick <neil@digimed.co.uk> wrote
about 'Re: [gentoo-user] Separate /usr [was: Clock is way off]':
> Hello Daniel Iliev,
>
> > Some say it gives performance boost (I'm not sure about it), but more
> > importantly it gives (partial) protection from file system damage.
>
> You could also argue that /usr needs the least protection from
> filesystem damage, because it contains no data. /usr can be repaired
> with
> a reinstall, unlike /var, /home or /etc.
That's my view, which is why /usr (fast, RAID0) is separate from /
(containing /etc; RAID6) on my machine.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss03@volumehost.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 21:22 ` Boyd Stephen Smith Jr.
@ 2007-05-09 21:52 ` Mick
0 siblings, 0 replies; 40+ messages in thread
From: Mick @ 2007-05-09 21:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On Wednesday 09 May 2007 22:22, Boyd Stephen Smith Jr. wrote:
> On Wednesday 09 May 2007, Neil Bothwick <neil@digimed.co.uk> wrote
>
> about 'Re: [gentoo-user] Separate /usr [was: Clock is way off]':
> > Hello Daniel Iliev,
> >
> > > Some say it gives performance boost (I'm not sure about it), but more
> > > importantly it gives (partial) protection from file system damage.
> >
> > You could also argue that /usr needs the least protection from
> > filesystem damage, because it contains no data. /usr can be repaired
> > with
> > a reinstall, unlike /var, /home or /etc.
>
> That's my view, which is why /usr (fast, RAID0) is separate from /
> (containing /etc; RAID6) on my machine.
These days I keep /usr/portage on a separate partition to minimise fs
fragmentation. On an old slooow box of mine I have /usr/local/bin
and /usr/local/lib on separate disks, as well as /var/tmp and /usr/bin and
keep them on primary partitions for extra speed and parallel
access/processing across two different IDE controllers:
http://tldp.org/HOWTO/Multi-Disk-HOWTO.html
One can get really silly at this, I certainly did, but on modern machines with
SATA drives the difference in speed is probably marginal. I didn't keep
notes of any benchmarks but despite the asthmatic hardware my
multi-disk/partitioning scheme did pay some noticeable dividends as far as I
can recall. Of course, YMMV.
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 17:53 ` [gentoo-user] Separate /usr [was: Clock is way off] Benno Schulenberg
` (3 preceding siblings ...)
2007-05-09 18:54 ` Daniel Iliev
@ 2007-05-09 21:49 ` darren kirby
2007-05-09 23:01 ` Bo Ørsted Andresen
2007-05-09 23:06 ` Neil Bothwick
4 siblings, 2 replies; 40+ messages in thread
From: darren kirby @ 2007-05-09 21:49 UTC (permalink / raw
To: gentoo-user
quoth the Benno Schulenberg:
> Neil Bothwick wrote:
> > On Wed, 09 May 2007 12:05:05 -0500, Dale wrote:
> > > I think you are supposed to link that localtime file instead of
> > > copying. If the file in zoneinfo gets updated then the one in
> > > /etc will still be the old one.
> >
> > You are not supposed to link it any more, because that will break
> > if /usr has not yet been mounted.
>
> Are there (still) people who have /usr on a separate partition?
> And if so, why?
I have heard you can use a separate /usr to enhance security by mounting it
readonly under normal circumstances. This way, bad guys can't mess with your
binaries in /usr/bin and /usr/sbin, though it seems to me if they have access
to mess with your /usr they can mess with anything anyway so...
I do have a separate /usr, but do not mount it readonly, as I --sync enough to
make remounting it daily rather annoying.
> I only have /home and /usr/portage on separate partitions,
> everything else is on /, even /boot.
>
> Benno
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 21:49 ` darren kirby
@ 2007-05-09 23:01 ` Bo Ørsted Andresen
2007-05-09 23:31 ` Neil Bothwick
` (2 more replies)
2007-05-09 23:06 ` Neil Bothwick
1 sibling, 3 replies; 40+ messages in thread
From: Bo Ørsted Andresen @ 2007-05-09 23:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
On Wednesday 09 May 2007 23:49:45 darren kirby wrote:
> I do have a separate /usr, but do not mount it readonly, as I --sync enough
> to make remounting it daily rather annoying.
Congratulations! You've just explained why PORTDIR defaulting to /usr/portage
is stupid. The logical location for the tree would be on /var ... :)
--
Bo Andresen
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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
2 siblings, 0 replies; 40+ messages in thread
From: Neil Bothwick @ 2007-05-09 23:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 659 bytes --]
On Thu, 10 May 2007 01:01:32 +0200, Bo Ørsted Andresen wrote:
> > I do have a separate /usr, but do not mount it readonly, as I --sync
> > enough to make remounting it daily rather annoying.
>
> Congratulations! You've just explained why PORTDIR defaulting
> to /usr/portage is stupid. The logical location for the tree would be
> on /var ... :)
Except that running emerge --sync without following it with emerge
--update is rather pointless, and that would require /usr to be mounted
rw wherever $PORTDIR was.
I do agree that /var is a far more logical location.
--
Neil Bothwick
Top Oxymorons Number 26: Software documentation
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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
2 siblings, 0 replies; 40+ messages in thread
From: Aleksandar L. Dimitrov @ 2007-05-10 2:16 UTC (permalink / raw
To: gentoo-user
On Thu, 2007-05-10 at 01:01 +0200, Bo Ørsted Andresen wrote:
> On Wednesday 09 May 2007 23:49:45 darren kirby wrote:
> > I do have a separate /usr, but do not mount it readonly, as I --sync enough
> > to make remounting it daily rather annoying.
>
> Congratulations! You've just explained why PORTDIR defaulting to /usr/portage
> is stupid. The logical location for the tree would be on /var ... :)
>
I think the original reason for this is that FreeBSD ports is also
in /usr/ports. FS-optimization freaks (like myself) can always generate
a sparse file and/or mount /usr/portage somewhere else. A script that
does the update after this (w/ remounting and the like) is no big
magic.
Regards, Aleks
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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
2 siblings, 0 replies; 40+ messages in thread
From: Alan McKinnon @ 2007-05-10 7:28 UTC (permalink / raw
To: gentoo-user
On Thursday 10 May 2007, Bo Ørsted Andresen wrote:
> On Wednesday 09 May 2007 23:49:45 darren kirby wrote:
> > I do have a separate /usr, but do not mount it readonly, as I
> > --sync enough to make remounting it daily rather annoying.
>
> Congratulations! You've just explained why PORTDIR defaulting to
> /usr/portage is stupid. The logical location for the tree would be on
> /var ... :)
You are perfectly correct. That's why I have:
alan@nazgul ~ $ mount | grep /var
/dev/mapper/vg-var on /var type reiserfs (rw,noatime,notail)
/dev/mapper/vg-portage on /var/portage type reiserfs (rw,noatime)
/dev/mapper/vg-distfiles on /var/distfiles type reiserfs
(rw,noatime,notail)
Note that distfiles is not a sub-dir of portage either
--
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 21:49 ` darren kirby
2007-05-09 23:01 ` Bo Ørsted Andresen
@ 2007-05-09 23:06 ` Neil Bothwick
2007-05-10 0:31 ` darren kirby
2007-05-10 7:31 ` Alan McKinnon
1 sibling, 2 replies; 40+ messages in thread
From: Neil Bothwick @ 2007-05-09 23:06 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]
On Wed, 09 May 2007 15:49:45 -0600, darren kirby wrote:
> I have heard you can use a separate /usr to enhance security by
> mounting it readonly under normal circumstances. This way, bad guys
> can't mess with your binaries in /usr/bin and /usr/sbin,
Instead of only being able to get at the really important stuff in /bin
and /sbin?
> I do have a separate /usr, but do not mount it readonly, as I --sync
> enough to make remounting it daily rather annoying.
1) Use a script to remount /usr, sysnc, remount /usr
2) Much better, use a separate filesystem for /usr/portage (or put it
on /var)
3) Better still,
http://gentoo-wiki.com/TIP_Speeding_up_portage#Make_A_Sparse_File_to_create_portage_in
--
Neil Bothwick
"One World, One Web, One Program" - Microsoft Promotional Ad
"Ein Volk, Ein Reich, Ein Fuhrer" - Adolf Hitler
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 23:06 ` Neil Bothwick
@ 2007-05-10 0:31 ` darren kirby
2007-05-10 0:55 ` Neil Bothwick
2007-05-10 7:31 ` Alan McKinnon
1 sibling, 1 reply; 40+ messages in thread
From: darren kirby @ 2007-05-10 0:31 UTC (permalink / raw
To: gentoo-user
quoth the Neil Bothwick:
> On Wed, 09 May 2007 15:49:45 -0600, darren kirby wrote:
> > I have heard you can use a separate /usr to enhance security by
> > mounting it readonly under normal circumstances. This way, bad guys
> > can't mess with your binaries in /usr/bin and /usr/sbin,
>
> Instead of only being able to get at the really important stuff in /bin
> and /sbin?
Well, very nice how you trimmed the part of my original email that speaks to
your question and makes the same point as you, but thanks for making me look
stupid anyway...
Yeah, I know, I make myself look stupid, right ;)
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-10 0:31 ` darren kirby
@ 2007-05-10 0:55 ` Neil Bothwick
2007-05-10 2:01 ` darren kirby
0 siblings, 1 reply; 40+ messages in thread
From: Neil Bothwick @ 2007-05-10 0:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]
On Wed, 09 May 2007 18:31:07 -0600, darren kirby wrote:
> quoth the Neil Bothwick:
> > On Wed, 09 May 2007 15:49:45 -0600, darren kirby wrote:
> > > I have heard you can use a separate /usr to enhance security by
> > > mounting it readonly under normal circumstances. This way, bad guys
> > > can't mess with your binaries in /usr/bin and /usr/sbin,
> >
> > Instead of only being able to get at the really important stuff
> > in /bin and /sbin?
>
> Well, very nice how you trimmed the part of my original email that
> speaks to your question and makes the same point as you, but thanks for
> making me look stupid anyway...
The part I trimmed was "though it seems to me if they have access
to mess with your /usr they can mess with anything anyway so..." which I
guess could mean what you say you meant rather than how I read it. Sorry
if you think I twisted your post, that wasn't my intention.
--
Neil Bothwick
Remember that the Titanic was built by experts, and the Ark by a newbie
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-10 0:55 ` Neil Bothwick
@ 2007-05-10 2:01 ` darren kirby
0 siblings, 0 replies; 40+ messages in thread
From: darren kirby @ 2007-05-10 2:01 UTC (permalink / raw
To: gentoo-user
quoth the Neil Bothwick:
> The part I trimmed was "though it seems to me if they have access
> to mess with your /usr they can mess with anything anyway so..." which I
> guess could mean what you say you meant rather than how I read it. Sorry
> if you think I twisted your post, that wasn't my intention.
It's cool, I just thought it was funny ;)
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
2007-05-09 23:06 ` Neil Bothwick
2007-05-10 0:31 ` darren kirby
@ 2007-05-10 7:31 ` Alan McKinnon
2007-05-10 8:24 ` Neil Bothwick
1 sibling, 1 reply; 40+ messages in thread
From: Alan McKinnon @ 2007-05-10 7:31 UTC (permalink / raw
To: gentoo-user
On Thursday 10 May 2007, Neil Bothwick wrote:
> 3) Better still,
> http://gentoo-wiki.com/TIP_Speeding_up_portage#Make_A_Sparse_File_to_
>create_portage_in
I never understood why portage on a sparse file is beneficial. Mine is
on a small reiser logival volume mounted with option "tail". It's just
big enough to hold portage with 10-15% free space (the tree doesn't
expand that much over time).
Care to elabortae on the benfits you get doing it your way?
--
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Separate /usr [was: Clock is way off]
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
0 siblings, 1 reply; 40+ messages in thread
From: Neil Bothwick @ 2007-05-10 8:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
Hello Alan McKinnon,
> I never understood why portage on a sparse file is beneficial. Mine is
> on a small reiser logival volume mounted with option "tail". It's just
> big enough to hold portage with 10-15% free space (the tree doesn't
> expand that much over time).
It is faster. If I were going to use reiserfs (I use ext2 for this) I'd
use it with notail, the tail packing impacts performance. I'm more
interested in speed than saving disk space.
--
Neil Bothwick
We shall shortly be landing. Please return your stewardess to
the upright position.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* [gentoo-user] Re: Separate /usr
2007-05-10 8:24 ` Neil Bothwick
@ 2007-05-10 8:41 ` Alexander Skwar
2007-05-10 9:40 ` Neil Bothwick
0 siblings, 1 reply; 40+ messages in thread
From: Alexander Skwar @ 2007-05-10 8:41 UTC (permalink / raw
To: gentoo-user
Neil Bothwick <neil@digimed.co.uk> wrote:
> Hello Alan McKinnon,
>
>> I never understood why portage on a sparse file is beneficial. Mine is
>> on a small reiser logival volume mounted with option "tail". It's just
>> big enough to hold portage with 10-15% free space (the tree doesn't
>> expand that much over time).
>
> It is faster.
Hm. I don't understand. Why is portage in a sparse file of, let's say,
400m, with reiserfs and notail mounted, faster, then a real partition
of 400m with reiserfs and notail?
What makes the sparse file faster?
Alexander Skwar
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Re: Separate /usr
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
0 siblings, 1 reply; 40+ messages in thread
From: Neil Bothwick @ 2007-05-10 9:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 464 bytes --]
On Thu, 10 May 2007 10:41:04 +0200, Alexander Skwar wrote:
> > It is faster.
>
> Hm. I don't understand. Why is portage in a sparse file of, let's say,
> 400m, with reiserfs and notail mounted, faster, then a real partition
> of 400m with reiserfs and notail?
No idea, but I tried it when I encountered that page and portage
operations were measurably faster.
--
Neil Bothwick
If you got the words it does not mean you got the knowledge.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Re: Separate /usr
2007-05-10 9:40 ` Neil Bothwick
@ 2007-05-10 10:11 ` Benno Schulenberg
2007-05-10 10:34 ` Neil Bothwick
0 siblings, 1 reply; 40+ messages in thread
From: Benno Schulenberg @ 2007-05-10 10:11 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Thu, 10 May 2007 10:41:04 +0200, Alexander Skwar wrote:
> > Hm. I don't understand. Why is portage in a sparse file of,
> > let's say, 400m, with reiserfs and notail mounted, faster, then
> > a real partition of 400m with reiserfs and notail?
>
> 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.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Re: Separate /usr
2007-05-10 10:11 ` Benno Schulenberg
@ 2007-05-10 10:34 ` Neil Bothwick
2007-05-10 21:36 ` Dan Farrell
0 siblings, 1 reply; 40+ messages in thread
From: Neil Bothwick @ 2007-05-10 10:34 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]
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.
--
Neil Bothwick
"DOOM ", said Pooh, and Slaughtered Christopher Robin with a chainsaw
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Re: Separate /usr
2007-05-10 10:34 ` Neil Bothwick
@ 2007-05-10 21:36 ` Dan Farrell
2007-05-11 5:51 ` Andrey Gerasimenko
0 siblings, 1 reply; 40+ messages in thread
From: Dan Farrell @ 2007-05-10 21:36 UTC (permalink / raw
To: gentoo-user
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.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [gentoo-user] Re: Separate /usr
2007-05-10 21:36 ` Dan Farrell
@ 2007-05-11 5:51 ` Andrey Gerasimenko
0 siblings, 0 replies; 40+ messages in thread
From: Andrey Gerasimenko @ 2007-05-11 5:51 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 40+ messages in thread