- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- change kernel parameter and increase virtual memor...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 01:38 PM
07-25-2002 01:38 PM
I want to change the maximum heap size for one process, such as 300MB. I also want to increase the maximum virtual memory for the process.
Would someone tell me which kernel parameters I should change? And How to do it by the command line?
Thanks a lot!
Zhiyong
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 01:40 PM
07-25-2002 01:40 PM
Re: change kernel parameter and increase virtual memory
My system is HP/UX 10.20, so I can not use kmtune.
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 01:45 PM
07-25-2002 01:45 PM
SolutionWhile you can do this from the command line, it is much easier (and safer) to use SAM to make these changes and generate a new kernel and save the original in /stand/vmunix.prev. It does all the critical steps for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 01:58 PM
07-25-2002 01:58 PM
Re: change kernel parameter and increase virtual memory
But if your really game here is the command line option...
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system
Make your changes
Save the file
# mk_kernel -s system
Once successful you need to put the new kernel in place.
# mv /stand/vmunix /stand/vmunix.prev
# mv /stand/build/vmunix /stand/vmunix
# cd /
# shutdown -r -y 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 02:21 PM
07-25-2002 02:21 PM
Re: change kernel parameter and increase virtual memory
Thanks a lot for help.
I will use the sam.
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 10:49 PM
07-25-2002 10:49 PM
Re: change kernel parameter and increase virtual memory
http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html
and
http://docs.hp.com//hpux/onlinedocs/os/KCparam.ProcessParamsList.html
In case you have more than one system to apply the new kernel parameter set:
--
How to create a SD depot for kernel configuration changes
DocId: USDUXKBRC00008416 Updated: 11/8/01 8:40:00 AM
PROBLEM
I want to create a depot that only changes kernel configuration, e.g. some
kernel tunables. This is especially useful if tuning needs to be done on a
large number of systems while the end users are not skilled for such tasks.
Using auch depot end users would only need to perform a simple installaion.
CONFIGURATION
HP-UX 10.X, 11.X Software Distributor
RESOLUTION
You need to create a depot using the swpackage(1M) command. For this task
You
use a product specification file (psf) like this (see swpackage(4) manpage
for
details):
# ktune.psf
depot
product
tag ktune
title Dummy product for kernel tuning
fileset
tag ktune
title Dummy fileset for kernel tuning
is_reboot true
is_kernel true
end
postinstall ./ktune.postinstall
end
end
The real work during installation will be done by a script ktune.postinstall
which is referenced in the psf file.
This example simply adds driver 'stape' and configures nfile to 5000:
#!/sbin/sh
# ktune.postinstall, postinstall for kernel tuning
exitval=0
UTILS="/usr/lbin/sw/control_utils"
if [[ ! -f $UTILS ]]
then
echo "ERROR: Cannot find $UTILS"
exit 1
fi
. $UTILS
SYSTEM=$SW_SYSTEM_FILE_PATH
if [[ -z "${SW_DEFERRED_KERNBLD}" ]]
then
mod_systemfile $SYSTEM -a stape # add driver
mod_systemfile $SYSTEM -t nfile 5000 # tune nfile
if [[ $? -ne 0 ]]
then
print "ERROR: Cannot update $SYSTEM"
exitval=$FAILURE
fi
fi # end of "if [[ -z ${SW_DEFERRED_KERNBLD}" ]]
exit $exitval
# eof
Using the two files above (psf and postinstall script) You should be able to
create the desired depot using e.g. the command:
# swpackage -x target_type=tape -s ktune.psf @ /tmp/ktune.depot
Installing from ktune.depot using swinstall(1M) will apply the changes,
rebuild the kernel and reboot the system automatically, e.g.:
# swinstall -x autoreboot=true -s /tmp/ktune.depot \*
ALT KEYWORDS
SD SDUX depot kernel tunable tuning swpackage