You are not logged in.

#1 2005-09-27 16:30:59

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

I installed the acct utils by pacman, but it seems can't wor

I installed the acct utils by pacman, but it seems can't work:
accton:Function not implemented
Anyone could help me?

Offline

#2 2005-09-27 20:52:45

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: I installed the acct utils by pacman, but it seems can't wor

You need a kernel with process accounting enabled. Check the output of

zcat /proc/config.gz | grep ACCT

If you see CONFIG_BSD_PROCESS_ACCT=y, the kernel supports process accounting. If not, well... it's time to compile a new kernel.  smile

EDIT: To turn it on set General setup -> BSD Process Accounting to "y" when configuring the kernel.

Offline

#3 2005-09-28 13:11:42

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: I installed the acct utils by pacman, but it seems can't wor

Yes, I find the option BSD Process Accounting in kernel config menu.
I want to know which options should I use if I want to optimize the kernel for i686 system as arch did.

Offline

#4 2005-09-28 15:05:39

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: I installed the acct utils by pacman, but it seems can't wor

I recommend reading this wiki page carefully before building the kernel:
http://wiki.archlinux.org/index.php/Cus … n_with_ABS.

This is a _very_ short summary of the steps you need to take:

1) Grab the PKGBUILD from the above page and put it into the directory where you are building the kernel.
2) Copy the files config and kernel26.install from /var/abs/kernels/kernel26 to the kernel build directory. You might need to run abs as root before you do this. This ensures that you start from the default Arch kernel configuration and optimizations.
3) Edit PKGBUILD to set the right kernel version (pkgver) and select the configuration method (menuconfig/xconfig/gconfig).
4) I'm assuming you are not using any kernel patches, so just start the pkgbuild process with makepkg.
5) Make the changes you want to the kernel configuration. If not using patches, remember to check that LOCALVERSION is set (under General Setup -> Local version).
6) Save the changes and exit kernel configuration. You will be asked whether to 'make clean', just say yes if this is the first build of the kernel.
7) The kernel hopefully gets compiled and packaged.
8 ) Install the package with pacman.
9) Upgrade your bootloader (read the instructions!)
10) Reboot and select your new kernel.

That's it really. Good luck.  smile

Offline

#5 2005-09-28 17:08:09

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: I installed the acct utils by pacman, but it seems can't wor

I compiled a new kernel of version 2.6.13.2, but failed - cant mount root fs. Maybe I made some mistakes in configuring the kernel.

I follow you this time.;p

Offline

#6 2005-09-28 18:00:35

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: I installed the acct utils by pacman, but it seems can't wor

Mounting / fails most likely because the new kernel tries to mount the root filesystem with the new udev naming scheme. The old devfs is not supported by kernels 2.6.13 and above. Luckily, there is a wiki about migrating to udev: http://wiki.archlinux.org/index.php/Udev.

What you need:
1) pacman -S udev
2) Edit /etc/fstab (backing up the old one is a very good idea) according to the wiki instructions. Notice that editing /etc/fstab may cause problems when booting the old kernel. Having a rescue CD nearby is also a good idea.  smile
3) Change the root= parameter for your new kernel in lilo or grub. That is, root=/dev/hdXX where XX is the mount point of the root partition according to the udev naming scheme.
4) Reboot and hope for the best.

Offline

#7 2005-09-29 09:39:51

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: I installed the acct utils by pacman, but it seems can't wor

I modified my grub boot menu to udev type, but it still couldn't mount /.
I'll try the arch way - using PKGBUILD

Offline

Board footer

Powered by FluxBB