public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Running out of space on /var partition
Date: Wed, 27 Jul 2011 17:28:57 -0500	[thread overview]
Message-ID: <4E309129.6040605@gmail.com> (raw)
In-Reply-To: <CAOTuDKpey0vhGeLeW=FJReJR03T_kmMOonvRoU2ivRpTaGZ33Q@mail.gmail.com>

Joshua Murphy wrote:
> On Wed, Jul 27, 2011 at 5:51 PM, Dale<rdalek1967@gmail.com>  wrote:
>    
>> Michael Mol wrote:
>>      
>>> On Wed, Jul 27, 2011 at 5:07 PM, Dale<rdalek1967@gmail.com>    wrote:
>>>
>>>        
>>>> Neil Bothwick wrote:
>>>>
>>>>          
>>>>> On Wed, 27 Jul 2011 10:58:28 -0500, Dale wrote:
>>>>>
>>>>>
>>>>>            
>>>> I have 16Gbs here.  It's not like I'm going to run out or anything.  I
>>>> can
>>>> put half on tmpfs and still have 8Gbs left.  That is more than enough to
>>>> compile even OOo with no space problems.
>>>>
>>>> Thoughts?
>>>>
>>>>          
>>> This is Gentoo, where all us users are reputed to spend their days
>>> passing around benchmarks of "emerge -e world", right?
>>>
>>> Try it. :)
>>>
>>>
>>>
>>>        
>> Yep, we do that.  Mine is about 12 hours.  I would post it but I got a
>> Blocker instead.  I'll work on that and post it later.  lol
>>
>> Point is, I have more than enough memory to test the theory that putting
>> portage's work directory on tmpfs is faster/slower than a hard drive.  I
>> tested it and it really didn't make much difference.  Most of the time it
>> was slower but a couple times it was faster but only by a few seconds.
>>
>> I guess drives are just a lot faster nowadays or at least fast enough.  I
>> dunno.
>>
>> Dale
>>
>> :-)  :-)
>>
>>
>>      
> I would hazard a guess here that, rather than it being a benefit from
> improvement in drive speeds, it's moreso an improvement in the
> kernel's file caching. As I understand it (likely incorrectly) tmpfs
> essentially does little more than inject the given file into the
> filesystem cache, with a 'keep this here' flag attached to it. As
> files are accessed on the disk, they're pulled into the filesystem
> cache anyhow, and they stay there as long as they're being used and
> there's room to keep them. With tmpfs, every file you put into it
> stays until explicitly removed, wheras letting the kernel handle the
> selected list of files in the cache only keeps the ones the kernel
> feels are worth keeping. I am curious, though, whether *not* using
> -pipe will actually improve performance when building in tmpfs, as
> you're already sidestepping most of the overhead of creating files
> with tmpfs, so piping data rather than using intermediate files just
> creates extra memory usage overhead (which, while cheaper than disk
> i/o and filesystem metadata updates, is still overhead).
>
> Another likely source of performance loss in using tmpfs over physical
> disk to hold the build is that, by design, tmpfs occupies a portion of
> the filesystem cache. During a build, every header imported, every
> library linked, and every process that runs to make it all come
> together gets touched. When you touch files on disk, some or all of
> them get pulled into the filesystem cache, so keeping the entire build
> tree in the cache may well leave more frequently used files being
> dropped from cache to trade back and forth between one another.
>
> Again, all of this comes with a "I likely have no idea what I'm
> talking about, but it sounds convincing" disclaimer.
>
> :-)
>
>    

Sounds better than my "I dunno" tho.  LOL

I know it doesn't make much sense tho, at least not based on what 
several others thought would happen way back in the day.  Back then, 
very few people had enough ram to really test this.  Those who did, 
well, it may not be their machine to run the test.  ;-)

I may test this again one day.  All you have to do is create a set and 
emerge it.  Reboot to make sure the cache is cleaned 100%, mount tmpfs 
and emerge the set again.  Compare the times and see what hits the fan, 
theory or reality.  :/

Dale

:-)  :-)



  reply	other threads:[~2011-07-27 22:30 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-25 10:02 [gentoo-user] Running out of space on /var partition Mick
2011-07-25 10:24 ` YoYo Siska
2011-07-25 10:40   ` Mick
2011-07-25 11:18     ` YoYo Siska
2011-07-25 11:39       ` Mick
2011-07-25 11:03 ` Kfir Lavi
2011-07-25 12:15 ` Alan McKinnon
2011-07-27  7:24 ` Alexander Puchmayr
2011-07-27 13:23   ` Mick
2011-07-27 13:29     ` Michael Mol
2011-07-27 13:41       ` Peter Humphrey
2011-07-27 13:55         ` Michael Mol
2011-07-27 14:40         ` Neil Bothwick
2011-07-27 14:52           ` Dale
2011-07-27 14:52           ` Alan McKinnon
2011-07-27 15:03             ` Michael Mol
2011-07-27 15:35             ` Neil Bothwick
2011-07-27 15:58               ` Dale
2011-07-27 20:44                 ` Neil Bothwick
2011-07-27 20:54                   ` Michael Mol
2011-07-27 22:35                     ` Neil Bothwick
2011-07-27 21:07                   ` Dale
2011-07-27 21:30                     ` Michael Mol
2011-07-27 21:51                       ` Dale
2011-07-27 22:14                         ` Joshua Murphy
2011-07-27 22:28                           ` Dale [this message]
2011-07-28  9:46                       ` Kfir Lavi
2011-07-28 20:10                       ` Dale
2011-07-29  1:50                         ` Bill Kenworthy
2011-07-27 22:37                     ` Neil Bothwick
2011-07-27 23:16                       ` Dale
2011-07-27 23:37                         ` Alex Schuster
2011-07-28  0:19                           ` Dale
2011-07-28  0:23                             ` Dale
2011-07-28 20:00                               ` [gentoo-user] " walt
2011-07-28 20:14                                 ` Dale
2011-07-28 20:34                                   ` Peter Humphrey
2011-07-28 20:42                                     ` Dale
2011-07-28 21:38                                   ` walt
2011-07-28 21:50                                     ` Dale
2011-07-28 22:03                                     ` Alex Schuster
2011-07-28 22:36                                       ` Paul Hartman
2011-07-29  8:26                                         ` Alex Schuster
2011-07-28  1:09                             ` Re: [gentoo-user] " Alex Schuster
2011-07-28  1:22                               ` Dale
2011-07-28 18:14                                 ` Alex Schuster
2011-07-28 18:48                                   ` Dale
2011-07-28 19:06                                     ` Alex Schuster
2011-07-28 19:18                                       ` Peter Humphrey
2011-07-28 19:38                                       ` Dale
2011-07-28 20:15                                         ` Yohan Pereira
2011-07-28 20:50                                         ` Alex Schuster
2011-07-29 20:37                                           ` Dale
2011-07-28 19:15                                   ` Peter Humphrey
2011-07-28 20:27                                     ` Alex Schuster
2011-07-28 20:41                                       ` Alan McKinnon
2011-07-28 20:43                                       ` Peter Humphrey
2011-07-28  7:34                         ` Neil Bothwick
2011-07-28 12:49                           ` Dale
2011-07-28  7:05               ` Joost Roeleveld
2011-07-27 15:01           ` Michael Mol
2011-07-28  0:47             ` [gentoo-user] " walt
2011-07-28 15:26               ` Peter Humphrey

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=4E309129.6040605@gmail.com \
    --to=rdalek1967@gmail.com \
    --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