2008/8/12 Morgan Wesström <[EMAIL PROTECTED]>

> you'll use swap partition. but you'll not allocate all that ram space with
>> openoffice. i've tried to compile it twice. first time it was on disk and it
>> took almost 14 hours of compilation. the second time was on tmpfs with 3.8gb
>> and a 6gb swap file and it took less than 8 hours and
>>
>
> If I understand you correctly, I wouldn't be able to compile Open Office on
> tmpfs with my 2GB RAM and 1GB swap. I would have to increase the swap space
> to be able to hold all the temporary files from the compilation, wouldn't I?
> /Morgan
>
>
well, it's difficult to compile it and in my opinion you might be able to do
it, but i'm not sure. also be aware that usually the tmpfs is lower than
1gb. do a df /tmp and see yourself. you should specify your tmpfs size in
/etc/fstab like in the following example:

tmpfs                   /tmp            tmpfs
mode=1777,size=8G,nodev,nosuid  0 0

the example puts the right tmpfs permissions and sets the size of it to 8GB.
i currently have 3.8gb of ram and 8gb of swap. this means that i still have
plenty of room in the swap and ram to be able to run smoothly the system.
usually the swap partition is put to a dimension equal to double the ram
dimension. if you want to compile into ram you should set it to more than
double, for example to about 3 times the ram space, thus equal to 6gb and
then set the maximum tmpfs in fstab to 6gb or even 7gb. in this way you'll
use first all of your ram and then till 4 or 5 gb of swap. this will allow
your pc to respond even if the compilation will go over the estimated space.

-- 
dott. ing. beso

Reply via email to