Friday, February 27, 2009

IO scheduler on Xen

Running Xen book:
http://books.google.com/books?id=XS-Jj7s2nhYC&pg=PA467&lpg=PA467&dq=CFQ+Xen&source=bl&ots=UUJJrX36AZ&sig=c3iyq1rNYh5WsXdz4pyKVMxE5pU&hl=en&ei=SxqoSZ2DEY-ctwfI7Pj7Dw&sa=X&oi=book_result&resnum=8&ct=result
Xen devel:
http://www.mailinglistarchive.com/xen-devel@lists.xensource.com/msg12022.html
http://lists.xensource.com/archives/html/xen-devel/2005-11/msg00371.html

Change the scheduler:

Q: I am experiencing a heavy slowdown of the entire dom0 and all other domUs if one domU gets under heavy load.Is there any way to tighten this domU by adjusting something like scheduling?
A: You can use elevator=cfq as the command line option for both the dom0 and domU kernels in grub.conf and /etc/xen domU config files respectively. This will force the use of cfq as the default scheduler. By default anticipatory is the scheduler in dom0 and noop in domU. Alternatively:echo "cfq" > /sys/block/sda/queue/scheduler

Thursday, February 26, 2009

PCI BIOS specifications

Phonix bios:
http://members.datafast.net.au/dft0802/specs/bios32.pdf
PCI BIOS specification:
http://www-online.kek.jp/~yasu/Parallel-CAMAC/bios21spec.pdf

Linux pic bios related implementation:
http://lxr.linux.no/linux+v2.6.28.7/arch/x86/pci/pcbios.c

Wednesday, February 25, 2009

File for about:config in Firefox

I want to backup my about:config settings, where is the file that stores it?
I think you mean this file:

prefs.js

Look for it in

/home/your_user/.mozilla/firefox/orws2gsm.default

Settings for crash restore: 
user_pref("browser.sessionstore.resume_from_crash", false);

Tuesday, February 24, 2009

Compile examples from Linux device driver 3rd

http://hi.baidu.com/wzipp/blog/item/3b6d9f45799b5423cffca386.html

When compile scull, need to add one line in access.c:
#include quota(linux/sched.h)quota

Monday, February 16, 2009

Install Xen3.3 on CentOS5 and ubuntu

A more complete version is here:
http://driverentry.spaces.live.com/blog/cns!8F8079B325833D71!867.entry

Ref:

Ubuntu:
http://www.howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-repositories
http://bderzhavets.blogspot.com/2008/05/install-opensolaris-200805-domu-at.html
http://bderzhavets.wordpress.com/2008/11/13/backport-intrepid-xen-33-hypervisor-at-ubuntu-hardy-dom0-2624-21-xen/

CentOS 5
http://robinbowes.com/article.php/20081023014423777
http://bderzhavets.blogspot.com/2008/08/install-xen-3.html
http://book.xen.prgmr.com/mediawiki/index.php/3.3

Comiple xen 3.3 on CenOS 5
Ref: http://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/Xen_on_CentOS_5_-_Notes
1. download two tar files from xen.org
2. Install mercurial src code version manager

wget http://www.selenic.com/mercurial/release/mercurial-0.9.5.tar.gz
tar xvfz mercurial-0.9.5.tar.gz
cd mercurial*
make install
export PYTHONPATH=/usr/local/lib/python2.4/site-packages:${PYTHONPATH}
(if not export that environment variable, you will get an error as this: ImportError: No module named mercurial).

3. Install prerequested packages:


yum install \
gcc make zlib-devel zlib python-devel curses libncurses-devel ncurses-devel openssl openssl-devel \
`yum search xorg-x11|grep dev|grep x86_64|awk -F . '{print $1}'` \
bridge-utils tetex tetex-latex transfig libtool-ltdl dev86 glibc-devel


( for i386 version, replace x86_64 with i386)

4. tar xzf xen*, cd xen*, make world
5. cd dist, sh ./install.sh
6. disable tls:
Put this in /etc/ld.so.conf.d/xen.conf:

# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 0 set in their hwcap match
# fields. In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 0 nosegneg

Note that the file name _must_ end ".conf". When you've done that, run
/sbin/ldconfig and reboot. The problem should go away.

7. reboot

Last updated: 12.8.2009

Install IE on Ubuntu

http://www.howtoforge.com/how-to-install-internet-explorer-on-ubuntu8.04
http://yourubuntulinux.blogspot.com/2007/12/how-to-install-ie4linux-on-ubuntu-710.html
http://www.linuxine.com/2008/02/guide-for-installing-ie4linux-on-ubuntu.html
http://www.ubuntugeek.com/running-internet-explorer-in-ubuntu-linux.html

Sunday, February 15, 2009

Build Xen 3.3.1 src on Ubuntu 8.04

1. Download src from http://www.xen.org/download/
2. Install missing package:
apt-get install libssl-dev mercurial gettext-kde libx11-dev libncurses5-dev patch build-essential texlive-latex-base tetex-bin tetex-extra transfig fig2ps texinfo
3. make a soft link for xgettext:
ln -s /usr/bin/kde-xgettext /usr/bin/xgettext
4. go to xen src directory
make world
5. cd dist
sh ./install.sh
6. depmod 2.6.18.8-xen
update-initramfs -c -k 2.6.18.8-xen
update-grub
7. reboot

Result: can boot into Dom0, but failed to start xend. :(