Sep 10, 2010

EXT4 inode usage in Linux

I am using Linux (Ubuntu 9.10 Karmic) at my workplace and I have a 80GB SSD drive. So I've used almost the entire disk for the root partition (of 75GB) and formatted into 'etx4' file system. We have a large number of small files in our code path and I have several copies of them. Recently when I updated my code branch I got the folliwing error message:

svn: Can't open file '...somefile...': No space left on device

But I had more than 50% of free space left in my disk. When I checked for the usage of inodes (by "df -i") I found that I have hit the maximum number of inodes limit. For a 75DB ext4 partition, there were about 3.5 million inodes allocated. And I had only a little over 1 million files in the system. I do not know how ext4 had used up all the inodes but I found that when I removed my code branches from the file system, inode usage had dropped to 12%. 

So, after some discussion with my coworkers I've decided to create a separate partition using 'reiserfs' as it can better support a large file systems with small files. Since it omits the use of inode table, it does not assign a static number of inodes like in ext4. Now (I think) I do not need to worry about this issue anymore.

Jul 20, 2010

Twitter, Ruby and Scala

This is a good article about how and why Twitter folks rewrote some of their systems in Scala. Those components have been written in Ruby before and its really interesting to hear about their experiences in working with dynamically typed languages. Long live the JVM!

http://www.artima.com/scalazine/articles/twitter_on_scala.html

Lasantha Kularatne
Software Engineer
Bazaarvoice [site | blog | twitter]


Mar 30, 2010

A big hurrah for LCH

It is a historical day: March 30th, 2010
LHC (Large Hadron Collider) has started colliding particles today. World is celebrating it today.
This is the quest for finding Higgs boson, dark matter and studying the big bang theory.

The CNN report:
http://www.cnn.com/2010/TECH/science/03/30/large.hadron.collider/index.html?hpt=T2

Feb 28, 2010

OSx 10.5.7 with ATI Radeon HD 4870

For All Hackintosh enthusiasts,

I got my Diamond ATI Radeon HD 4870 512mb working successfully with QE/CI support. Used OSx 10.5.7 & Natit pkg.

  • I used iAtkos 5i (10.5.5) distro with Voodoo kernel. Selected the the VGA driver and compatible network, SATA driers.
  • Then I had to start in safe mode with ( -x ) kernel parameter. If you start in normal mode it will flicker and just show a blank & pixlated screen.
  • Then in safe mode I have updated to 10.5.7 from the Mac menu ‘Update’ option. This will install the Vanilla 9.7 kernel and I had to enable the vanilla kernel in Boot.plist file changing the kernel mode from ‘custom’ to ‘mach_kernel’. Remember I had to do it in single user (which is root console) mode with -s kernel parameter, because I could not find the root password for iAtkos distro.
  • After restart I still got the flickering, and then safe mode again and installed the Natit pkg.
  • Another restart… voila! It worked with hardware acceleration and QE/CI support in 1080P resolution.

I tried nVidia GTS 250 and GTX 260 but did not have any luck, so I had to gamble with a new 4870 and it paid off.