Funtoo Configure-optimalisation

Print Friendly, PDF & Email


Funtoo Configure-optimalisation



1      Configuration_ 2

1.1       Num Lock_ 2

2      Fstab.2

3      Performance2

4      Network-Samba-server3

4.1       Pour configurer.3

4.2       Relancer smb :3

5      Network-NFS-server3




1         Configuration

1.1      Num Lock

Tout se trouve ici :

rc-update add numlock default


2         Fstab.

3         Performance

I guess noatime is a little faster than relatime,

  • writeback mode
    In data=writeback mode, ext4 does not journal data at all.  This mode provides
    a similar level of journaling as that of XFS, JFS, and ReiserFS in its default
    mode – metadata journaling.  A crash+recovery can cause incorrect data to
    appear in files which were written shortly before the crash.  This mode will
    typically provide the best ext4 performance.
  • ordered mode
    In data=ordered mode, ext4 only officially journals metadata, but it logically
    groups metadata information related to data changes with the data blocks into a
    single unit called a transaction.  When it’s time to write the new metadata
    out to disk, the associated data blocks are written first.  In general,
    this mode performs slightly slower than writeback but significantly faster than journal mode.
  • mpstat -P ALL 2
  • ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10 


4         Network-Samba-server

4.1      Pour configurer.

modifier le fichier : /etc/samba/smb.conf


comment = Fred’s Service

path = /home/dvd

valid users = esa01

public = no

writable = yes

printable = no

Rajouter un user SMB :

smbpasswd -a esa01

New SMB password:

Retype new SMB password:

Added user esa01.

4.2      Relancer smb :

/etc/init.d/samba stop

* samba -> stop: smbd …                                                                                                                             [ ok ]

* samba -> stop: nmbd …                                                                                                                             [ ok ]

/etc/init.d/samba start

* samba -> start: smbd …                                                                                                                            [ ok ]

* samba -> start: nmbd …

  • Configuration du service → rc-update add samba default

5         Network-NFS-server

Il faut installer → emerge -av nfs-utils

Il faut configurer le noyau pour le support NFSD. Lancer le module NFSD.

Configurer le fichier : /etc/exports

  • /home/dvd 192.168.1.*(ro,no_root_squash,sync,subtree_check)

    Attention, il ne faut pas d’espace entre l’adresse IP et l’ouverture de parenthèses des options : *(options…!

On lance NFS par la commande :

  • /etc/init.d/nfs start

Configuration du service → rc-update add nfs default