°Ô½Ã¹° 1,369°Ç
   
ceph tunning
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2018-07-09 (¿ù) 11:39 Á¶È¸ : 13966
±ÛÁÖ¼Ò :
                                
https://bogachev.biz/2017/05/09/%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F-%D0%B8-%D1%82%D1%8E%D0%BD%D0%B8%D0%BD%D0%B3-Ceph/



¬°¬á¬ä¬Ú¬Þ¬Ú¬Ù¬Ñ¬è¬Ú¬ñ ¬Ú ¬ä¬ð¬ß¬Ú¬ß¬Ô Ceph

¬¯¬Ñ¬ã¬ä¬â¬à¬Û¬Ü¬Ñ Swappiness, ¬Ü¬ï¬ê¬Ú¬â¬à¬Ó¬Ñ¬ß¬Ú¬Ö, ¬à¬á¬ä¬Ú¬Þ¬Ú¬Ù¬Ñ¬è¬Ú¬ñ ¬à¬á¬Ö¬â¬Ñ¬è¬Ú¬Û ¬é¬ä¬Ö¬ß¬Ú¬ñ/¬Ù¬Ñ¬á¬Ú¬ã¬Ú ¬Õ¬Ý¬ñ ¬å¬ã¬Ü¬à¬â¬Ö¬ß¬Ú¬ñ ¬â¬Ñ¬Ò¬à¬ä¬í Ceph, ¬ä¬ð¬ß¬Ú¬ß¬Ô Ceph.

¬¦¬Õ¬Ú¬ß¬à¬Û ¬Ü¬à¬ß¬æ¬Ú¬Ô¬å¬â¬Ñ¬è¬Ú¬Ú ¬Õ¬Ý¬ñ ¬Ú¬Õ¬Ö¬Ñ¬Ý¬î¬ß¬à¬Û ¬â¬Ñ¬Ò¬à¬ä¬í ¬ß¬Ö¬ä, ¬à¬á¬ä¬Ú¬Þ¬Ú¬Ù¬Ñ¬è¬Ú¬ñ ¬Ú ¬ß¬Ñ¬ã¬ä¬â¬à¬Û¬Ü¬Ñ ¬á¬â¬à¬Ú¬Ù¬Ó¬à¬Õ¬Ú¬ä¬ã¬ñ ¬Ú¬ã¬ç¬à¬Õ¬ñ ¬Ú¬Ù ¬ä¬â¬Ö¬Ò¬à¬Ó¬Ñ¬ß¬Ú¬Û ¬Ü ¬â¬Ñ¬Ù¬Ý¬Ú¬é¬ß¬à¬Ô¬à ¬â¬à¬Õ¬Ñ ¬Ù¬Ñ¬Õ¬Ñ¬é¬Ñ¬Þ.

¬£ ¬Õ¬Ñ¬ß¬ß¬à¬Þ ¬á¬â¬Ú¬Þ¬Ö¬â¬Ö ¬Ò¬å¬Õ¬Ö¬ä ¬â¬Ñ¬ã¬ã¬Þ¬à¬ä¬â¬Ö¬ß ¬à¬Õ¬Ú¬ß ¬Ú¬Ù ¬Ó¬Ñ¬â¬Ú¬Ñ¬ß¬ä¬à¬Ó ¬Õ¬Ý¬ñ ¬å¬Ý¬å¬é¬ê¬Ö¬ß¬Ú¬ñ ¬â¬Ñ¬Ò¬à¬ä¬í ¬Õ¬Ú¬ã¬Ü¬à¬Ó¬à¬Û ¬á¬à¬Õ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬í Ceph.

¬£¬¯¬ª¬®¬¡¬¯¬ª¬¦! 

¬£¬ã¬Ö ¬Õ¬Ö¬Û¬ã¬ä¬Ó¬Ú¬ñ ¬Ó ¬Õ¬Ñ¬ß¬ß¬à¬Û ¬ã¬ä¬Ñ¬ä¬î¬Ö ¬Þ¬à¬Ô¬å¬ä ¬á¬â¬Ú¬Ó¬Ö¬ã¬ä¬Ú ¬Ü ¬Ü¬â¬Ñ¬ç¬å ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬í. 

¬¯¬Ö ¬Ó¬í¬á¬à¬Ý¬ß¬ñ¬Û¬ä¬Ö ¬Ú¬ç ¬ß¬Ñ ¬â¬Ñ¬Ò¬à¬é¬Ú¬ç ¬ã¬Ö¬â¬Ó¬Ö¬â¬Ñ¬ç. ¬±¬à¬Ø¬Ñ¬Ý¬Ö¬Û¬ä¬Ö ¬ß¬Ö¬â¬Ó¬í :)

¬±¬â¬Ú¬ã¬ä¬å¬á¬Ú¬Þ.

1. read_ahead

¬±¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â read_ahead ¬å¬ã¬Ü¬à¬â¬ñ¬Ö¬ä ¬à¬á¬Ö¬â¬Ñ¬è¬Ú¬Ú ¬Õ¬Ú¬ã¬Ü¬à¬Ó¬à¬Ô¬à ¬é¬ä¬Ö¬ß¬Ú¬ñ ¬á¬å¬ä¬Ö¬Þ ¬á¬â¬Ö¬Õ¬Ó¬Ñ¬â¬Ú¬ä¬Ö¬Ý¬î¬ß¬à¬Û ¬Ó¬í¬Ò¬à¬â¬Ü¬Ú ¬Ú ¬Ú¬ç ¬Ù¬Ñ¬Ô¬â¬å¬Ù¬Ü¬Ú ¬Ó ¬à¬á¬Ö¬â¬Ñ¬ä¬Ú¬Ó¬ß¬å¬ð ¬á¬Ñ¬Þ¬ñ¬ä¬î. ¬µ¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ü¬Ñ ¬à¬ä¬ß¬à¬ã¬Ú¬ä¬Ö¬Ý¬î¬ß¬à ¬Ó¬í¬ã¬à¬Ü¬Ú¬ç ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Û read_ahead ¬Õ¬Ñ¬ã¬ä ¬á¬â¬Ö¬Ú¬Þ¬å¬ë¬Ö¬ã¬ä¬Ó¬Ñ ¬Ü¬Ý¬Ú¬Ö¬ß¬ä¬Ñ¬Þ ¬á¬â¬Ú ¬Ó¬í¬á¬à¬Ý¬ß¬Ö¬ß¬Ú¬Ú ¬à¬á¬Ö¬â¬Ñ¬è¬Ú¬Û ¬á¬à¬ã¬Ý¬Ö¬Õ¬à¬Ó¬Ñ¬ä¬Ö¬Ý¬î¬ß¬à¬Ô¬à ¬é¬ä¬Ö¬ß¬Ú¬ñ.

¬±¬â¬à¬Ó¬Ö¬â¬Ú¬ä¬î ¬ä¬Ö¬Ü¬å¬ë¬Ö¬Ö ¬å¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ý¬Ö¬ß¬ß¬à¬Ö ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ ¬Þ¬à¬Ø¬ß¬à ¬Ü¬à¬Þ¬Ñ¬ß¬Õ¬à¬Û:

$ sudo cat /sys/block/sda/queue/read_ahead_kb
128

¬¥¬Ý¬ñ ¬å¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ü¬Ú read_ahead ¬Ò¬°¬Ý¬î¬ê¬Ö¬Ô¬à ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬ñ, ¬Ú¬ã¬á¬à¬Ý¬î¬Ù¬å¬Ö¬Þ ¬ã¬Ý¬Ö¬Õ¬å¬ð¬ë¬å¬ð ¬Ü¬à¬Þ¬Ñ¬ß¬Õ¬å:

echo "8192" > /sys/block/sda/queue/read_ahead_kb

¬¡¬ß¬Ñ¬Ý¬à¬Ô¬Ú¬é¬ß¬à ¬ß¬Ö¬à¬Ò¬ç¬à¬Õ¬Ú¬Þ¬à ¬Ú¬Ù¬Þ¬Ö¬ß¬Ú¬ä¬î read_ahead ¬Õ¬Ý¬ñ ¬Ó¬ã¬Ö¬ç RBD, ¬á¬à¬Þ¬Ö¬é¬Ö¬ß¬ß¬í¬ç ¬Õ¬Ý¬ñ ¬Õ¬Ñ¬ß¬ß¬à¬Ô¬à ¬ç¬à¬ã¬ä¬Ñ. 

¬µ¬Ò¬Ö¬Õ¬Ú¬ä¬Ö¬ã¬î, ¬é¬ä¬à ¬Ó¬í ¬Ú¬ã¬á¬à¬Ý¬î¬Ù¬å¬Ö¬ä¬Ö ¬á¬â¬Ñ¬Ó¬Ú¬Ý¬î¬ß¬à¬Ö ¬Ú¬Þ¬ñ ¬á¬å¬ä¬Ú ¬å¬ã¬ä¬â¬à¬Û¬ã¬ä¬Ó¬Ñ.

2. ¬°¬ä¬Ü¬Ý¬ð¬é¬Ú¬Þ ¬ã¬Ú¬ß¬ä¬Ñ¬Ü¬ã¬Ú¬é¬Ö¬ã¬Ü¬Ú¬Û ¬Ñ¬ß¬Ñ¬Ý¬Ú¬Ù ¬Ü¬Ñ¬ä¬Ñ¬Ý¬à¬Ô¬Ñ OSD ¬ã ¬á¬à¬Þ¬à¬ë¬î¬ð updatedb

¬µ¬ä¬Ú¬Ý¬Ú¬ä¬Ñ ¬á¬à¬Õ ¬ß¬Ñ¬Ù¬Ó¬Ñ¬ß¬Ú¬Ö¬Þ updatedb ¬ã¬Ü¬Ñ¬ß¬Ú¬â¬å¬Ö¬ä ¬Ó¬ã¬ð ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬å ¬Ú ¬à¬Ò¬ß¬à¬Ó¬Ý¬ñ¬Ö¬ä ¬æ¬Ñ¬Û¬Ý ¬Ò¬Ñ¬Ù¬í ¬Õ¬Ñ¬ß¬ß¬í¬ç mlocate.db.

¬¢¬Ñ¬Ù¬Ñ ¬Õ¬Ñ¬ß¬ß¬í¬Û ¬ï¬ä¬à ¬æ¬Ñ¬Û¬Ý, ¬Ó ¬Ü¬à¬ä¬à¬â¬à¬Þ ¬ã¬à¬Õ¬Ö¬â¬Ø¬Ú¬ä¬ã¬ñ ¬Ú¬ß¬æ¬à¬â¬Þ¬Ñ¬è¬Ú¬ñ ¬à ¬æ¬Ñ¬Û¬Ý¬Ñ¬ç ¬Ú ¬Ú¬ç ¬á¬å¬ä¬ñ¬ç ¬Ó ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬Ö Linux.

updatedb -e /var/lib/ceph

3. ¬°¬ä¬Ü¬Ý¬ð¬é¬Ú¬ä¬î transparent hugepage(THP)

¬±¬â¬à¬Ó¬Ö¬â¬Ú¬ä¬î ¬ã¬ä¬Ñ¬ä¬å¬ã HugePages ¬Þ¬à¬Ø¬ß¬à ¬Ü¬à¬Þ¬Ñ¬ß¬Õ¬à¬Û:

# grep -i HugePages_Total /proc/meminfo
HugePages_Total: 0

¬Ú¬Ý¬Ú

$ cat /proc/sys/vm/nr_hugepages
0
$ sysctl vm.nr_hugepages
vm.nr_hugepages = 0

¬¯¬å¬Ý¬Ö¬Ó¬à¬Ö ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö ¬à¬Ù¬ß¬Ñ¬é¬Ñ¬Ö¬ä, ¬é¬ä¬à HugePages ¬à¬ä¬Ü¬Ý¬ð¬é¬Ö¬ß ¬Ó ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬Ö.
¬¦¬Ø¬Ö¬Ý¬Ú ¬ï¬ä¬à ¬Ú¬ß¬Ñ¬é¬Ö, ¬ä¬à ¬ã¬Ý¬Ö¬Õ¬å¬Ö¬Þ ¬Õ¬Ñ¬Ý¬î¬ê¬Ö.

¬¥¬Ý¬ñ ¬à¬ä¬Ü¬Ý¬ð¬é¬Ö¬ß¬Ú¬ñ THP ¬á¬â¬Ú ¬Ù¬Ñ¬Ô¬â¬å¬Ù¬Ü¬Ö ¬à¬ä¬â¬Ö¬Õ¬Ñ¬Ü¬ä¬Ú¬â¬å¬Ö¬Þ ¬æ¬Ñ¬Û¬Ý grub.conf:

transparent_hugepage=never

¬¥¬Ý¬ñ ¬à¬ä¬Ü¬Ý¬ð¬é¬Ö¬ß¬Ú¬ñ THP ¡°¬ß¬Ñ ¬Ý¬Ö¬ä¬å¡± ¬Ó¬í¬á¬à¬Ý¬ß¬Ú¬Þ ¬Ü¬à¬Þ¬Ñ¬ß¬Õ¬í:

# echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
# echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag

4. ¬ª¬ã¬á¬à¬Ý¬î¬Ù¬à¬Ó¬Ñ¬ß¬Ú¬Ö ¬°¬©¬µ ¬Ú SWAP

¬±¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â vm.swappiness ¬á¬à ¬å¬Þ¬à¬Ý¬é¬Ñ¬ß¬Ú¬ð ¬Ú¬Þ¬Ö¬Ö¬ä ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö 60 ¬Ú ¬Ü¬à¬ß¬ä¬â¬à¬Ý¬Ú¬â¬å¬Ö¬ä ¬á¬â¬à¬è¬Ö¬ß¬ä ¬ã¬Ó¬à¬Ò¬à¬Õ¬ß¬à¬Û ¬á¬Ñ¬Þ¬ñ¬ä¬Ú, ¬á¬â¬Ú ¬Ü¬à¬ä¬à¬â¬à¬Û ¬ß¬Ñ¬é¬ß¬Ö¬ä¬ã¬ñ ¬Ñ¬Ü¬ä¬Ú¬Ó¬ß¬í¬Û ¬ã¬Ò¬â¬à¬ã ¬ã¬ä¬â¬Ñ¬ß¬Ú¬è ¬Ó ¬â¬Ñ¬Ù¬Õ¬Ö¬Ý swap.

¬©¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ ¬Õ¬à¬ã¬ä¬Ñ¬ä¬à¬é¬ß¬à ¬Ý¬Ö¬Ô¬Ü¬à ¬á¬à¬ß¬ñ¬ä¬î.

100-60 = 40% ¬Ù¬Ñ¬ß¬ñ¬ä¬à¬Û ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬á¬â¬Ú ¬Ü¬à¬ä¬à¬â¬à¬Û ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬Ñ ¬å¬Ø¬Ö ¬ß¬Ñ¬é¬ß¬Ö¬ä ¬Ú¬ã¬á¬à¬Ý¬î¬Ù¬à¬Ó¬Ñ¬ä¬î ¬â¬Ñ¬Ù¬Õ¬Ö¬Ý swap

¬­¬å¬é¬ê¬Ú¬Þ ¬â¬Ö¬ê¬Ö¬ß¬Ú¬Ö¬Þ ¬Ò¬å¬Õ¬Ö¬ä ¬Ú¬Ù¬Þ¬Ö¬ß¬Ú¬ä¬î ¬Õ¬Ñ¬ß¬ß¬í¬Û ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â ¬ß¬Ñ 10 ¬Ú ¬å¬Ü¬Ñ¬Ù¬Ñ¬ä¬î ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬Ö ¬ß¬Ö ¬Ú¬ã¬á¬à¬Ý¬î¬Ù¬à¬Ó¬Ñ¬ä¬î¬ã¬ñ swap, ¬á¬à¬Ü¬Ñ ¬°¬©¬µ ¬ß¬Ö ¬Õ¬à¬ã¬ä¬Ú¬Ô¬ß¬Ö¬ä 90%.

¬¥¬Ý¬ñ ¬Ú¬Ù¬Þ¬Ö¬ß¬Ö¬ß¬Ú¬ñ ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ ¡°¬ß¬Ñ ¬Ý¬Ö¬ä¬å¡± ¬Ó¬í¬á¬à¬Ý¬ß¬Ú¬Þ:

echo 10 > /proc/sys/vm/swappiness

¬Ú¬Ý¬Ú

sysctl -w vm.swappiness=10

¬¥¬Ý¬ñ ¬á¬Ö¬â¬Þ¬Ñ¬ß¬Ö¬ß¬ä¬ß¬à¬Û ¬ß¬Ñ¬ã¬ä¬â¬à¬Û¬Ü¬Ú ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ, ¬Ú¬Ù¬Þ¬Ö¬ß¬Ú¬Þ ¬æ¬Ñ¬Û¬Ý /etc/sysctl.conf ¬Ú ¬Õ¬à¬Ò¬Ñ¬Ó¬Ú¬Þ ¬ã¬ä¬â¬à¬é¬Ü¬å:

vm.swappiness=10

¬±¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â vfs_cache_pressure ¬á¬à ¬å¬Þ¬à¬Ý¬é¬Ñ¬ß¬Ú¬ð ¬Ú¬Þ¬Ö¬Ö¬ä ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö 100 ¬Ú ¬à¬ä¬Ó¬Ö¬é¬Ñ¬Ö¬ä ¬Ù¬Ñ ¬å¬â¬à¬Ó¬Ö¬ß¬î ¬Ó¬í¬Õ¬Ö¬Ý¬ñ¬Ö¬Þ¬à¬Û ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬á¬à¬Õ ¬Ü¬ï¬ê.

¬µ¬Ó¬Ö¬Ý¬Ú¬é¬Ö¬ß¬Ú¬Ö ¬Õ¬Ñ¬ß¬ß¬à¬Ô¬à ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ ¬Ù¬Ñ¬ã¬ä¬Ñ¬Ó¬Ý¬ñ¬Ö¬ä ¬ñ¬Õ¬â¬à ¬Ñ¬Ü¬ä¬Ú¬Ó¬ß¬Ö¬Ö ¬Ó¬í¬Ô¬â¬å¬Ø¬Ñ¬ä¬î ¬ß¬Ö¬Ú¬ã¬á¬à¬Ý¬î¬Ù¬å¬Ö¬Þ¬í¬Ö ¬ã¬ä¬â¬Ñ¬ß¬Ú¬è¬í ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬Ú¬Ù ¬Ü¬Ö¬ê¬Ñ, ¬ä.¬Ö. ¬Ü¬à¬Ý¬Ú¬é¬Ö¬ã¬ä¬Ó¬à ¬Ó¬í¬Õ¬Ö¬Ý¬ñ¬Ö¬Þ¬à¬Û ¬à¬á¬Ö¬â¬Ñ¬ä¬Ú¬Ó¬ß¬à¬Û ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬á¬à¬Õ ¬Ü¬Ö¬ê ¬Ò¬å¬Õ¬Ö¬ä ¬â¬Ñ¬ã¬ä¬Ú ¬Þ¬Ö¬Õ¬Ý¬Ö¬ß¬ß¬Ö¬Ö, ¬é¬ä¬à ¬ã¬ß¬Ú¬Ù¬Ú¬ä ¬Ó¬Ö¬â¬à¬ñ¬ä¬ß¬à¬ã¬ä¬î ¬ä¬à¬Ô¬à, ¬é¬ä¬à ¬Ò¬å¬Õ¬Ö¬ä ¬Ù¬Ñ¬Õ¬Ö¬Û¬ã¬ä¬Ó¬à¬Ó¬Ñ¬ß ¬â¬Ñ¬Ù¬Õ¬Ö¬Ý swap.

¬±¬â¬Ú ¬å¬Þ¬Ö¬ß¬î¬ê¬Ö¬ß¬Ú¬Ú ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ, ¬ñ¬Õ¬â¬à, ¬ß¬Ñ¬à¬Ò¬à¬â¬à¬ä, ¬Ò¬å¬Õ¬Ö¬ä ¬Õ¬à¬Ý¬î¬ê¬Ö ¬Õ¬Ö¬â¬Ø¬Ñ¬ä¬î ¬ã¬ä¬â¬Ñ¬ß¬Ú¬è¬í ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬Ó ¬Ü¬Ö¬ê¬Ö, ¬Ó ¬ä¬à¬Þ ¬é¬Ú¬ã¬Ý¬Ö ¬Ú ¬Ó swap¡¯¬Ö.

¬¿¬ä¬à ¬Ú¬Þ¬Ö¬Ö¬ä ¬ã¬Þ¬í¬ã¬Ý ¬á¬â¬Ú ¬ß¬Ö¬Ò¬à¬Ý¬î¬ê¬à¬Þ ¬Ü¬à¬Ý¬Ú¬é¬Ö¬ã¬ä¬Ó¬Ö ¬°¬©¬µ, ¬ß¬Ñ¬á¬â¬Ú¬Þ¬Ö¬â, ¬Ö¬ã¬Ý¬Ú ¬å ¬ß¬Ñ¬ã 512 ¬®¬¢ ¬á¬Ñ¬Þ¬ñ¬ä¬Ú, ¬ä¬à ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â vfs_cache_pressure ¬Þ¬à¬Ø¬ß¬à ¬Ó¬í¬ã¬ä¬Ñ¬Ó¬Ú¬ä¬î ¬â¬Ñ¬Ó¬ß¬í¬Þ 50. ¬¿¬ä¬à ¬á¬à¬Ù¬Ó¬à¬Ý¬Ú¬ä ¬ã¬à¬Ü¬â¬Ñ¬ä¬Ú¬ä¬î ¬Ü¬à¬Ý¬Ú¬é¬Ö¬ã¬ä¬Ó¬à ¬Õ¬Ú¬ã¬Ü¬à¬Ó¬í¬ç ¬à¬á¬Ö¬â¬Ñ¬è¬Ú¬Û ¬Ó swap ¬â¬Ñ¬Ù¬Õ¬Ö¬Ý¬Ö, ¬ä¬Ñ¬Ü ¬Ü¬Ñ¬Ü ¬å¬Õ¬Ñ¬Ý¬Ö¬ß¬Ú¬Ö ¬ß¬Ö¬Ú¬ã¬á¬à¬Ý¬î¬Ù¬å¬Ö¬Þ¬í¬ç ¬ã¬ä¬â¬Ñ¬ß¬Ú¬è ¬Ò¬å¬Õ¬Ö¬ä ¬á¬â¬à¬Ú¬ã¬ç¬à¬Õ¬Ú¬ä¬î ¬â¬Ö¬Ø¬Ö.

¬¥¬Ñ¬Ý¬î¬ß¬Ö¬Û¬ê¬Ö¬Ö ¬å¬Þ¬Ö¬ß¬î¬ê¬Ö¬ß¬Ú¬Ö ¬ï¬ä¬à¬Ô¬à ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬Ñ ¬Þ¬à¬Ø¬Ö¬ä ¬á¬â¬Ú¬Ó¬Ö¬ã¬ä¬Ú ¬Ü ¬ß¬Ö¬ç¬Ó¬Ñ¬ä¬Ü¬Ö ¬á¬Ñ¬Þ¬ñ¬ä¬Ú.

¬¦¬ã¬Ý¬Ú ¬Þ¬í ¬ç¬à¬ä¬Ú¬Þ ¬å¬ã¬Ü¬à¬â¬Ú¬ä¬î ¬â¬Ñ¬Ò¬à¬ä¬å ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬í ¬Ú ¬å ¬ß¬Ñ¬ã ¬Õ¬à¬ã¬ä¬Ñ¬ä¬à¬é¬ß¬à ¬á¬Ñ¬Þ¬ñ¬ä¬Ú, ¬ä¬à ¬Ú¬Ù¬Þ¬Ö¬ß¬Ú¬Þ ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬í, ¬Õ¬à¬Ò¬Ñ¬Ó¬Ú¬Ó ¬ã¬ä¬â¬à¬é¬Ü¬Ú ¬Ó ¬æ¬Ñ¬Û¬Ý /etc/sysctl.conf:

vm.swappiness = 10
vm.vfs_cache_pressure = 1000

¬±¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â kernel.pid_max ¬ã¬Ý¬å¬Ø¬Ú¬ä ¬Õ¬Ý¬ñ ¬á¬à¬Õ¬Õ¬Ö¬â¬Ø¬Ü¬Ú ¬Ò¬à¬Ý¬î¬ê¬Ö¬Ô¬à ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬ñ ¬ä¬â¬Ö¬Õ¬à¬Ó (threads). ¬£ ¬ä¬Ö¬à¬â¬Ú¬Ú, ¬Þ¬Ñ¬Ü¬ã¬Ú¬Þ¬å¬Þ ¬ï¬ä¬à - 4,194,303.

¬£¬ß¬Ö¬ã¬Ö¬Þ ¬Ú¬Ù¬Þ¬Ö¬ß¬Ö¬ß¬Ú¬ñ ¬Ó ¬æ¬Ñ¬Û¬Ý /etc/sysctl.conf, ¬Õ¬à¬Ò¬Ñ¬Ó¬Ú¬Ó ¬ã¬ä¬â¬à¬é¬Ü¬å:

kernel.pid_max = 4194303

vm.zone_reclaim_mode

¬±¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â vm.zone_reclaim_mode. ¬°¬á¬Ñ¬ã¬Ö¬ß ¬Õ¬Ý¬ñ ¬æ¬Ñ¬Û¬Ý¬à¬Ó¬í¬ç ¬ã¬Ö¬â¬Ó¬Ö¬â¬à¬Ó.

¬£¬Ñ¬Ø¬ß¬à, ¬é¬ä¬à¬Ò¬í ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö ¬Ò¬í¬Ý¬à ¬Ó¬í¬ã¬ä¬Ñ¬Ó¬Ý¬Ö¬ß¬à ¬Ó ¬ß¬à¬Ý¬î.

¬°¬á¬ä¬Ú¬Þ¬Ú¬Ù¬Ñ¬è¬Ú¬ñ Ceph OSD

¬°¬ä¬Ü¬Ý¬ð¬é¬Ú¬Þ ¬Ó¬Ö¬Õ¬Ö¬ß¬Ú¬Ö ¬Ø¬å¬â¬ß¬Ñ¬Ý¬Ñ ¬Ó ¬á¬Ñ¬Þ¬ñ¬ä¬Ú.

¬¬¬Ñ¬Ø¬Õ¬Ñ¬ñ ¬á¬à¬Õ¬ã¬Ú¬ã¬ä¬Ö¬Þ¬Ñ Ceph ¬Ú¬Þ¬Ö¬Ö¬ä ¬ã¬Ó¬à¬Û ¬å¬â¬à¬Ó¬Ö¬ß¬î ¬Ý¬à¬Ô¬Ú¬â¬à¬Ó¬Ñ¬ß¬Ú¬ñ ¬Ú ¬â¬Ö¬Ô¬Ú¬ã¬ä¬â¬Ú¬â¬å¬Ö¬ä ¬ï¬ä¬à ¬Ó ¬á¬Ñ¬Þ¬ñ¬ä¬Ú.

¬®¬í ¬Þ¬à¬Ø¬Ö¬Þ ¬å¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ú¬ä¬î ¬â¬Ñ¬Ù¬ß¬í¬Ö ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬ñ ¬Õ¬Ý¬ñ ¬Ü¬Ñ¬Ø¬Õ¬à¬Û ¬Ú¬Ù ¬ï¬ä¬Ú¬ç ¬á¬à¬Õ¬ã¬Ú¬ã¬ä¬Ö¬Þ, ¬å¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ú¬Ó ¬å¬â¬à¬Ó¬Ö¬ß¬î ¬Ý¬à¬Ô¬Ú¬â¬à¬Ó¬Ñ¬ß¬Ú¬ñ ¬Ú ¬å¬â¬à¬Ó¬Ö¬ß¬î ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬Õ¬Ý¬ñ ¬Ó¬Ö¬Õ¬Ö¬ß¬Ú¬ñ ¬Ø¬å¬â¬ß¬Ñ¬Ý¬Ñ ¬à¬ä¬Ý¬Ñ¬Õ¬Ü¬Ú ¬Ó ¬Õ¬Ú¬Ñ¬á¬Ñ¬Ù¬à¬ß¬Ö ¬à¬ä 1 ¬Õ¬à 20. (¬¤¬Õ¬Ö 1 ¬ñ¬Ó¬Ý¬ñ¬Ö¬ä¬ã¬ñ ¬Ü¬â¬Ñ¬ä¬Ü¬Ú¬Þ ¬Ú 20 - ¬á¬à¬Õ¬â¬à¬Ò¬ß¬í¬Þ).

¬±¬Ö¬â¬Ó¬à¬Ö ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö - ¬ï¬ä¬à ¬å¬â¬à¬Ó¬Ö¬ß¬î ¬Ý¬à¬Ô¬Ú¬â¬à¬Ó¬Ñ¬ß¬Ú¬ñ, ¬Ñ ¬Ó¬ä¬à¬â¬à¬Û - ¬å¬â¬à¬Ó¬Ö¬ß¬î ¬á¬Ñ¬Þ¬ñ¬ä¬Ú. ¬®¬í ¬Õ¬à¬Ý¬Ø¬ß¬í ¬à¬ä¬Õ¬Ö¬Ý¬Ú¬ä¬î ¬Ú¬ç ¬ã ¬á¬à¬Þ¬à¬ë¬î¬ð ¬Ü¬à¬ã¬à¬Û ¬é¬Ö¬â¬ä¬í (/):

debug <subsystem> = <log-level>/<memory-level>

¬­¬à¬Ô¬Ú¬â¬à¬Ó¬Ñ¬ß¬Ú¬Ö ¬á¬à ¬å¬Þ¬à¬Ý¬é¬Ñ¬ß¬Ú¬ð ¬Ú¬Õ¬Ö¬Ñ¬Ý¬î¬ß¬à ¬á¬à¬Õ¬ç¬à¬Õ¬Ú¬ä ¬Õ¬Ý¬ñ ¬ß¬Ñ¬Ò¬Ý¬ð¬Õ¬Ö¬ß¬Ú¬ñ ¬Ù¬Ñ ¬Ü¬Ý¬Ñ¬ã¬ä¬Ö¬â¬à¬Þ.

¬¦¬ã¬Ý¬Ú ¬Ó¬Ö¬Õ¬Ö¬ß¬Ú¬Ö ¬Ø¬å¬â¬ß¬Ñ¬Ý¬Ñ ¬Ó ¬á¬Ñ¬Þ¬ñ¬ä¬Ú ¬Ó¬Ý¬Ú¬ñ¬Ö¬ä ¬ß¬Ñ ¬á¬â¬à¬Ú¬Ù¬Ó¬à¬Õ¬Ú¬ä¬Ö¬Ý¬î¬ß¬à¬ã¬ä¬î ¬Ú¬Ý¬Ú ¬á¬à¬ä¬â¬Ö¬Ò¬Ý¬Ö¬ß¬Ú¬Ö ¬á¬Ñ¬Þ¬ñ¬ä¬Ú, ¬Ó ¬ï¬ä¬à ¬ã¬Ý¬å¬é¬Ñ¬Ö ¬Þ¬í ¬Þ¬à¬Ø¬Ö¬Þ ¬à¬ä¬Ü¬Ý¬ð¬é¬Ú¬ä¬î ¬Ö¬Ô¬à.

¬¹¬ä¬à¬Ò¬í ¬à¬ä¬Ü¬Ý¬ð¬é¬Ú¬ä¬î ¬Õ¬à¬Ò¬Ñ¬Ó¬î¬ä¬Ö ¬ã¬Ý¬Ö¬Õ¬å¬ð¬ë¬Ú¬Ö ¬á¬Ñ¬â¬Ñ¬Þ¬Ö¬ä¬â¬í:

debug_lockdep = 0/0
debug_context = 0/0
debug_crush = 0/0
debug_buffer = 0/0
debug_timer = 0/0
debug_filer = 0/0
debug_objecter = 0/0
debug_rados = 0/0
debug_rbd = 0/0
debug_journaler = 0/0
debug_objectcatcher = 0/0
debug_client = 0/0
debug_osd = 0/0
debug_optracker = 0/0
debug_objclass = 0/0
debug_filestore = 0/0
debug_journal = 0/0
debug_ms = 0/0
debug_monc = 0/0
debug_tp = 0/0
debug_auth = 0/0
debug_finisher = 0/0
debug_heartbeatmap = 0/0
debug_perfcounter = 0/0
debug_asok = 0/0
debug_throttle = 0/0
debug_mon = 0/0
debug_paxos = 0/0
debug_rgw = 0/0

¬µ¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ú¬Þ max_open_files ¬Õ¬Ý¬ñ ¬ä¬à¬Ô¬à ¬é¬ä¬à¬Ò¬í ¬Ù¬Ñ¬Õ¬Ñ¬ä¬î ¬Þ¬Ñ¬Ü¬ã¬Ú¬Þ¬Ñ¬Ý¬î¬ß¬à¬Ö ¬Ù¬ß¬Ñ¬é¬Ö¬ß¬Ú¬Ö ¬à¬ä¬Ü¬â¬í¬ä¬í¬ç ¬Õ¬Ö¬ã¬Ü¬â¬Ú¬á¬ä¬à¬â¬à¬Ó ¬æ¬Ñ¬Û¬Ý¬à¬Ó ¬ß¬Ñ ¬å¬â¬à¬Ó¬ß¬Ö ¬°¬³:

max_open_files = 131072

¬¥¬Ý¬ñ ¬Ó¬ã¬Ö¬ç SSD-¬Õ¬Ú¬ã¬Ü¬à¬Ó ¬å¬ã¬ä¬Ñ¬ß¬à¬Ó¬Ú¬Þ ¬ß¬Ñ¬ã¬ä¬â¬à¬Û¬Ü¬Ú:

filestore_op_threads = 32
filestore_min_sync_interval = 0.01
filestore_max_sync_interval = 1
throttler_perf_counter =

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 

»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.