[email protected] wrote:
> On 09/04/2015 11:52 PM, Dale wrote:
>> [email protected] wrote:
>>> When I try to run emerge on my system I get:
>>>
>>> ...
>>>  * Your boot partition was not mounted at /boot, so it will be automounted 
>>> for you.
>>>  * Files will be installed there for grub to function correctly.
>>>>>> Running pre-merge checks for dev-db/mysql-5.6.26
>>>>>> Running pre-merge checks for net-libs/webkit-gtk-2.4.9-r200
>>>>>> Running pre-merge checks for mail-client/thunderbird-38.2.0
>>> The directory specified in your PORTAGE_TMPDIR variable, '/var/tmp/notmpfs',
>>> does not exist.  Please create this directory or correct your 
>>> PORTAGE_TMPDIR setting.
>>>
>>> my fstab:
>>> ...
>>> proc                        /proc           proc            defaults        
>>> 0 0
>>> shm                         /dev/shm        tmpfs           
>>> defaults,nodev,nosuid,mode=1777 0 0
>>> tmpfs               /var/tmp/portage        tmpfs           defaults      0 >>> 0
>>>
>>>
>>> ll /var/tmp/
>>> total 0
>>> drwxrwxrwt 4 portage portage 80 Sep  4 23:04 portage
>>>
>>> Do I need to create dir: /var/tmp/notmpfs ?
>>> My other systems did not show any such message.
>>>
>>
>> Are you trying to have portage's work directory on tmpfs?  If so, I have
>> this in fstab:
>>
>> tmpfs                   /var/tmp/portage tmpfs          noatime              
>> 0 0
>>
>> I don't have anything in fstab for PORTAGE_TMPDIR tho.  According to
>> this, you do need to create the directory if you are making exceptions.
>>
>> https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs#Per-Package_Choices_at_Compile_Time
>>
>> |root #||mkdir /var/tmp/notmpfs |
>> |root #||chown portage:portage /var/tmp/notmpfs |
>> |root #||chmod 775 /var/tmp/notmpfs
>>
>> Hope that helps.
>>
>> Dale
> I had this configuration already set:
> /etc/portage/env/notmpfs.conf
> PORTAGE_TMPDIR="/var/tmp/notmpfs"
>
> /etc/portage/package.env
> mail-client/thunderbird notmpfs.conf
> www-client/firefox notmpfs.conf
>
> What was missing was only directory:
> /var/tmp/notmpfs
>
> I'll remove "tmpfs" from fstab
>
>
> Thelma.
>
>


Well, you can leave that in fstab for when you can use it.  This is my
understanding.  Putting portage's work directory on tmpfs speeds up the
compile because it is done in memory instead of a hard drive.  Thing is,
there may be times when some packages don't have enough space to
compile, you run out of tmpfs basically.  One example, libreoffice which
uses a lot.  I've also found that Firefox also uses a lot of space too. 
Of course, I have enough memory at the moment for both to compile.  You
may not tho.

When you don't have enough for say Libreoffice to compile on tmpfs, you
then set a exception for that package.  That is where notmpfs comes in. 
That allows you to use tmpfs for all the other packages but puts it back
on spinning rust for that package, and any other package you set it for
such as Firefox. 

So, if you have the memory even for large packages like Libreoffice,
just remove the notmpfs part and leave fstab like it was.  Basically,
ignore that part of the wiki since you don't need to set that.  If you
have say 6GBs of ram, you would need that line in fstab AND the part
about notmpfs.  You would not be able to compile Libreoffice with that
small amount of ram and even Firefox may not either.

Does that clear up the muddy waters any or am I making it worse?  Maybe
the better question would be, how much memory does your rig have on it? 
Then folks can advise on where to go based on that.  ;-)

Dale

:-)  :-) 

P. S.  I type to dang slow.  I see Alan has posted too.  ROFL 


Reply via email to