Operating System - HP-UX
1832285 Members
2482 Online
110041 Solutions
New Discussion

Re: kernel size reduced after mk_kernel

 
renjp
New Member

kernel size reduced after mk_kernel

Hi,all
I have a K370 host with 11.0 hpux.HP engineer have installed a C++ on it before and now I found when I rebuild the kernel,I was told "can not find /usr/ccs/bin/cc".I link the cc under /opt/ansic dir to /usr/ccs/bin/cc.Then I can make kernel.But the kernel size reduced about 3M(from 15M to 12M).The new kernel can be booted but when using the new kernel,my applications become very slowly.When I return to the old kernel,my applications seems good again.Now I must rebuid the new kernel to install new driver,but my system seems have problem in building kernel.
Would anybody please help me to solve these probelm.Any suggestion would be very appreciative.

Newban
Newban
3 REPLIES 3
Steffi Jones_1
Esteemed Contributor

Re: kernel size reduced after mk_kernel

Hello,

you have to check if you have made changes to the system file.

Check if you find a system.prev file and try to build the kernel based on that file with
mk_kernel -s /stand/system.prev

you can create a new system file with the following command:

/usr/lbin/sysadm/system_prep

Steffi Jones
Victor BERRIDGE
Honored Contributor

Re: kernel size reduced after mk_kernel

How did you proceed to build a new kernel? were you using sam?, what have you changed?
Without this information its VERY difficult to answer...

Regards

Victor
Bruce Regittko_1
Esteemed Contributor

Re: kernel size reduced after mk_kernel

Hi,

It could be that /opt/ansic is optimizing the code for file size and not code efficiency. I would check to see how /opt/ansic can be invoked with these optimizations turned off. With most compilers, this can be done with command line options. If you find one, you could point your cc link to a one line shell script that invokes /opt/ansic with the desired options.

--Bruce
www.stratech.com/training