how to autoload modules

I installed zen kernel and some key modules stopped load automatically. I was frustrating to load every time from command line. There is very easy way for autoloading.

Create dir:

lenovo greg # mkdir /etc/modules.autoload.d

add file there and inside write module names in order you want to load…

lenovo modules.autoload.d # vi vmlinuz-2.6

thats all!

NTFS(3g) under linux

I have external HD, unfortunately files should be available also for Windows users, so I had to create ntfs partition. How does it work under my Gentoo? There is general problem that is impossible to create new files and folders even you have read/write support enabled in kernel.

On my laptop I got warnings like:

[ 1869.202693] NTFS-fs warning (device sdb1): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.

To solve this problem helps ntfs3g:

lenovo / # emerge -av ntfs3g

lenovo / # ln -s mount.ntfs-3g mount.ntfs

Now you can connect your external HD over usb. Write mode should be fully enabled.

Please use more RAM then swap…

As we can read on http://kerneltrap.org: “Swappiness is a kernel “knob” (located in /proc/sys/vm/swappiness) used to tweak how much the kernel favors swap over RAM; high swappiness means the kernel will swap out a lot, and low swappiness means the kernel will try not to use swap space.”
Less swap usage = less I/O operations = higher performance. Of course it has some limits. In order to set it we need to edit /etc/sysctl.conf and add value:
vm.swappiness=30
vm.swappiness can be set from 0..100 where less value means use less swap but more RAM. By default the most of distros set 60. You can check current value by:
lenovo init.d # sysctl vm.swappiness
vm.swappiness = 30

More accurate articles we can find here:
http://www.linuxvox.com/2009/10/what-is-the-linux-kernel-parameter-vm-swappiness/
http://lwn.net/Articles/100978/

Gentoo + KDE4.4 + compiz-fusion + 1300 FPS

Yes, maybe 1300 fps it is not exciting for someone who has ATI or NVidia card on board, but for my Intel 945GEM it’s back to times before KMS.
Anyway few months I suffered from 3D performance regression. I was happy if I saw 300 FPS. Now desktop can look great and to be fast. How to do it under Gentoo:
1. your system should be ready for “unstable” packages. Hence please accept ~x86 keyword in /etc/make.conf
ACCEPT_KEYWORDS="~x86" Continue reading