VirtualBox 4.3.8 + CentOS6.5 + Mac (Mavericks) ã§ã²ã¹ãã®ä»®æ³CPUã®æ°ãå¢ãã㨠SSHã®ã·ã§ã«æä½ããã£ããé ãã¨ããåé¡ãããã¾ããã·ã§ã«ã§ãã¼å ¥åãã度ã«ã¤ã£ãããæããããã¾ãã
VirtualBoxã®ããã¥ã¡ã³ãã Linuxã«ã¼ãã«å¨ãã§ãããã調ã¹ã¦ããã©ãåå ãåããã¾ãã ...
åç¾ã«ããã£ã¦ä¸è¨ã® Vagrantfile ã使ãã¨ããã¨æãã¾ã
# -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "CentOS 6.5 x86_64" config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box" config.vm.provider :virtualbox do |vb| vb.gui = true vb.customize ["modifyvm", :id, "--cpus", 4] vb.customize ["modifyvm", :id, "--ioapic", "on"] vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"] vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"] end end
ã¨ããããã®ã¯ã¼ã¯ã¢ã©ã¦ã³ã
CPU ã®æ°ã«å¿ãã¦ãããã¯ã¼ã¯å²ãè¾¼ã¿ã®CPUçªå·ã /proc/irq/19/smp_affinity/ ã§å¤ããã¨æ¹åãã¾ããIRQ 19 㯠virtio-net ãã©ã¤ãã§ã ( IRQãç°å¢ã«ãã£ã¦å¤ãããã¨ããã®ããª? )
ä»®æ³CPU 2åã®å ´å
# CPU1 㧠IRQ19 ã®å²ãè¾¼ã¿ãããã echo 2 | sudo tee /proc/irq/19/smp_affinity
ä»®æ³CPU 3åã®å ´å
# CPU2 㧠IRQ19 ã®å²ãè¾¼ã¿ãããã echo 4 | sudo tee /proc/irq/19/smp_affinity
ä»®æ³CPU 4åã®å ´å
# CPU3 㧠IRQ19 ã®å²ãè¾¼ã¿ãããã echo 8 | sudo tee /proc/irq/19/smp_affinity
ä»ã«è©¦ãããã¨
- ã°ã°ãã¨ãã³ã¢æ°å¢ãããã --ioapic on ã«ããã£ã¦ãªåçãããã©ãç¾è¡ã§ã¯ããã©ã«ã on ã½ãã®ã§æå¹ã§ãªã
- VirtualBox ã¯ããã©ã«ã㧠virtio-net ãã©ã¤ãã使ãã®ã§ãå¥ã®ãã©ã¤ãã«å¤ããããã¦ã¿ããæ¹åããæãã§ããªã
- ã«ã¼ãã«ã®ãã¼ã¸ã§ã³ä¸ããã ( 3.13.6 ) è¥å¹²ãã·ãªæ°ã¯ãã
- resolv.conf `options single-request-reopen` ã«æ¸ããã¤ã¯ DNSã®åå解決æãªã®ã§ãé¢ä¿ãªã
ãããã«ããå®éçãªè©ä¾¡ã®ä»æ¹ãåãããªãã®ã§ããªãã¨ãªããã£ãããã®ææ³ã¬ãã«ã§ããå¤å¥ãã¦ãªãã§ãã調æ»æ¹æ³ããã°ãã¾ã ...ã
P.S
社å åãã«æ¸ãããã¿ã®è»¢è¼ãªã®ã§ãã