顯示具有 zLinux 標籤的文章。 顯示所有文章
顯示具有 zLinux 標籤的文章。 顯示所有文章

2009年12月26日 星期六

Ubuntu中如何安裝gcc及kernel原始程式

在Ubuntu中安裝任何東西時,可使用apt-get這個好用的程式。例如,要安裝gcc時,只要執行下面指令,就可以安裝完成

sudo apt-get build-dep gcc

若要安裝kernel source,則使用下列指令

sudo apt-get install linux-source

若要安裝kernel source中的一些header檔案,則使用下列指令

sudo apt-get install linux-headers

指令會回傳不同release的list,此時使用uname –r 指令先確定目前的linux release 後,再重新執行

sudo apt-get install linux-headers-2.6.31-14-generic

2009年11月22日 星期日

如何查詢Guest目前使用了多少的Virtual CP,以及增加Guest的Virtual CP

在z/VM的 guest zLinux環境中,若要知道該Linux image配置了多少的Virtual CP,只需打入下列命令

cat       /proc/cpuinfo       ###結果如下

[root@ihs01 ~]# cat /proc/cpuinfo
vendor_id       : IBM/S390
# processors    : 2
bogomips per cpu: 3447.19
features        : esan3 zarch stfle msa ldisp eimm dfp
processor 0: version = 00,  identification = 04F4C0,  machine = 2094
processor 1: version = 00,  identification = 04F4C0,  machine = 2094

若要增加Linux guest的 logical CP,則打入下列command

echo 1 > /sys/devices/system/cpu/cpu1/online    #把cpu1 bring online