1.3 Configurer le kernel
Aller à la navigation
Aller à la recherche
Afficher la configuration:
# sysctl -a | more kernel.sched_child_runs_first = 0 kernel.sched_min_granularity_ns = 2000000 kernel.sched_latency_ns = 10000000 kernel.sched_wakeup_granularity_ns = 2000000 kernel.sched_shares_ratelimit = 500000 kernel.sched_shares_thresh = 4 kernel.sched_features = 32611451 kernel.sched_migration_cost = 500000
Modifier les paramètres
# cat /proc/sys/fs/file-max 404967 # echo "110000" > proc/sys/fs/file-max
Ou
# sysctl fs.file-max fs.file-max = 404967 # sysctl -w "fs.file-max=110000"
Les modifications ne sont pas garder au reboot, il faut les inscrires dans le fichier /etc/sysctl.conf
# cat /etc/sysctl.conf # # /etc/sysctl.conf - Configuration file for setting system variables # See /etc/sysctl.d/ for additonal system variables # See sysctl.conf (5) for information. #
#kernel.domainname = example.com<br< # Uncomment the following to stop low-level messages on console #kernel.printk = 3 4 1 3 ...