« Only two remote holes in the default install, in more than 10 years! | Home | Scapy Calismalari-III [Paket Dinleyicileri Belirleme] »
FreeBSD’de SMP(Symmetric Multiprocessing) Kullanmak
By Huzeyfe ONAL | March 20, 2007
FreeBSD’de SMP kernel kullanmakicin kernel’a smp destegi verip tekrar derlemek gerekiyor. Adim adim smp destegi vermek;
#cd /sys/i386/conf #cp GENERIC GENERIC_SMP # vi GENERIC_SMP options SMP
satiri eklenir. Sonra
#/usr/sbin/config GENERIC_SMP
#cd ../compile/GENERIC_SMP
#make depend
#make #make install komutlari verilir ve sonrasinda yeni kerneldan acmak reboot komutu verilir, ardindan bir umit ile sistemin acilmasi beklenir:) Acilista ( # dmesg|grep -i smp ) root@freebsd.lifeoverip.net:/usr/src/sys/i386/compile/MYKERNEL_SMP FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs SMP: AP CPU #1 Launched!
gibi bir �ıktı alıyor olmalısınız.
top �ıktısında hangi hangi uygulamanın hangi CPU’yu kullandığını nasıl g�rebilirim?
SMP desteği eklendiğinde top �ıktısına C koolonu eklenir, bu kolon hangi uygulamanın hangi CPU’yu kullandığını g�stermekle y�k�ml�d�r.
# top -n last pid: 12445; load averages: 0.99, 0.82, 0.49 up 0+00:09:26 00:57:46 239 processes: 3 running, 236 sleeping
Mem: 8760M Active, 2860M Inact, 1750M Wired, 652K Cache, 1120M Buf, 1671M Free Swap: 4069M Total, 4069M Free
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 693 nobody 4 0 13424K 11484K sbwait 1 0:03 7.67% 7.67% httpd 581 nobody 4 0 13468K 11536K sbwait 1 0:02 5.81% 5.81% httpd 616 nobody 4 0 23640K 21732K sbwait 0 0:01 1.66% 1.66% httpd 7617 nobody 4 0 13432K 11492K sbwait 0 0:02 0.83% 0.83% httpd 670 nobody 4 0 13364K 11424K sbwait 1 0:01 0.63% 0.63% httpd
Topics: FreeBSD |