Monday, 15 October 2012

What is NUMA

Here's an interesting sites which explains about NUMA or Non-Uniform Memory Access.
To understand NUMA we need to understand what is nodes and how does it work in NUMA.

http://www.qdpma.com/systemarchitecture/NUMA.html

http://msdn.microsoft.com/en-us/library/ms178144(v=sql.105).aspx

Wednesday, 25 April 2012

Count Lines of Code

There's a very useful free open source tool available to count the lines of code of your project.
It's called "CLOC" (http://cloc.sourceforge.net/)
It's a very simple tool.
Just download the tool and copy it to the directory/path of your source tree.
Execute the following command in command prompt to get the results:


cloc-1.52 --quiet --report-file=Loc.log *

Monday, 20 February 2012

How to remove a specific driver in Fedora 14

There are several ways to do it.
You can either recompile the kernel (alot of work), set to blacklist (normally won't work) or remove the driver in the driver specific path. (/lib/modules/xx.fc14.cc/kernel/drivers/.....)
I find the latter is the fastest and easiest.

Fedora 16 Native EFI installation

Its been a while since my last post.
To get Fedora 16 installed through EFI, Besides the similar steps in Fedora 14 installation where you need to copy the vmlinuz and initrd.img from the Fedora 16 installation disk, you need a minor modification in the elilo.conf to make the installation work in Serial Console.
Here's the additional text in red you need for Fedora 16 installation from EFI through Serial Console

prompt
timeout=50
default=Linux


image=vmlinuz
  label=Linux
  initrd=initrd.img
  append="console = ttyS0, 115200n8 serial"

Monday, 14 November 2011

How to mount USB drive using Linux Command Line

Use the following command to list drive in Linux. Please ensure you have root access
# fdisk -l 

Refer to the info and look for "sdb1" (This is normally the name for your usb)

#mkdir /mnt/sdb1

Edit /etc/fstab
Add the following line in fstab
/dev/sdb1       /mnt/sdb1           vfat    defaults        0       0 

Type the following command in Linux terminal
#mount -a

Monday, 7 November 2011

Changing File Permission in Clear Case

To change the file permission on elements in ClearCase:

$ cleartool protect -chmod 775 filename.txt

To change a recursive directory in ClearCase

$ cleartool protect -chmod 775 -r /vob/myproject

To change element owner:

$ cleartool protect -chown newuser filename.txt

Search for the "protect" command for cleartool for more info