Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

About compiling in ram.


Recommended Posts

Hi to all

shm                     /dev/shm        tmpfs           exec,rw,mode=1777      0 0

I use this method and by default i've shm = 8 GiB (ram is 16 GiB).

I compile all in ram without troubles; only for debian kernel I had necessity of more ram (however i'm a gentoo-sources user)... solved increasing the size of /dev/shm from 8 to 16 GiB.


It is a good choice or there are better ways (for example about security or other things) ?


Thanks for answers.

Link to comment
Share on other sites

tmpfs                       /tmp                     tmpfs noatime         0 0
tmpfs                       /var/tmp/portage  tmpfs  size=8G,uid=portage,gid=portage,mode=775,noatime 0 0
tmpfs                       /dev/shm              tmpfs  nodev,nosuid,noexec,noatime                  0 0

Link to comment
Share on other sites

Ok ... i've comprised now !!!

sandro@ci74771ht ~ $ cat  /etc/fstab                                                                                                                                                                                                                                            
# /etc/fstab: static file system information.                                                                                                                                                                                                                                   
# The root filesystem should have a pass number of either 0 or 1.                                                                                                                                                                                                               
# All other filesystems should have a pass number of 0 or greater than 1.                                                                                                                                                                                                       
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.                                                                                                                                                                                                      
# See the manpage fstab(5) for more information.                                                                                                                                                                                                                                
# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>                                                                                                                                                                                             
/dev/sda5       /boot                   ext4    noauto,noatime,discard                          1 2                                                                                                                                                                             
/dev/sdb3       none                    swap    sw                                              0 0                                                                                                                                                                             
/dev/sda6       /                       ext4    noatime,discard                                 0 1                                                                                                                                                                             
/dev/sdb2       /home                   ext4    noatime                                         1 2                                                                                                                                                                             
/dev/sdb1       /mnt/Volume             ntfs-3g defaults                                        0 0                                                                                                                                                                             
#/dev/cdrom     /mnt/cdrom              auto    noauto,ro                                       0 0                                                                                                                                                                             
shm             /dev/shm                tmpfs   defaults                                        0 0                                                                                                                                                                             
tmpfs           /var/tmp/portage        tmpfs   uid=portage,gid=portage,mode=775,noatime        0 0 

My fstab:


sandro@ci74771ht ~ $ df -h 
File system     Dim. Usati Dispon. Uso% Montato su
none            7,9G  1,2M    7,9G   1% /run
udev             10M     0     10M   0% /dev
shm             7,9G  140K    7,9G   1% /dev/shm
/dev/sda6        41G   17G     23G  43% /
cgroup_root      10M     0     10M   0% /sys/fs/cgroup
/dev/sdb2       360G   28G    315G   9% /home
/dev/sdb1       550G  229G    322G  42% /mnt/Volume
tmpfs           7,9G     0    7,9G   0% /var/tmp/portage


Thanks Very mutch Dear Whiteghost  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...