<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic change kernel parameter and increase virtual memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773000#M75188</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Would someone tell me which kernel parameters I should change? And How to do it by the command line?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;&lt;BR /&gt;Zhiyong</description>
    <pubDate>Thu, 25 Jul 2002 20:38:23 GMT</pubDate>
    <dc:creator>szhiyong</dc:creator>
    <dc:date>2002-07-25T20:38:23Z</dc:date>
    <item>
      <title>change kernel parameter and increase virtual memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773000#M75188</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Would someone tell me which kernel parameters I should change? And How to do it by the command line?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;&lt;BR /&gt;Zhiyong</description>
      <pubDate>Thu, 25 Jul 2002 20:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773000#M75188</guid>
      <dc:creator>szhiyong</dc:creator>
      <dc:date>2002-07-25T20:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: change kernel parameter and increase virtual memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773001#M75189</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My system is HP/UX 10.20, so I can not use kmtune.&lt;BR /&gt;&lt;BR /&gt;zhiyong</description>
      <pubDate>Thu, 25 Jul 2002 20:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773001#M75189</guid>
      <dc:creator>szhiyong</dc:creator>
      <dc:date>2002-07-25T20:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: change kernel parameter and increase virtual memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773002#M75190</link>
      <description>Almost certainly you need to increase maxdsiz to perhaps 320MB and maxssiz to perhaps 64MB.&lt;BR /&gt;&lt;BR /&gt;While 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.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2002 20:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773002#M75190</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-25T20:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: change kernel parameter and increase virtual memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773003#M75191</link>
      <description>I agree with Clay, you should use 'sam'&lt;BR /&gt;But if your really game here is the command line option... &lt;BR /&gt;&lt;BR /&gt;# cd /stand/build&lt;BR /&gt;# /usr/lbin/sysadm/system_prep -s system&lt;BR /&gt;# vi system&lt;BR /&gt;Make your changes&lt;BR /&gt;Save the file&lt;BR /&gt;# mk_kernel -s system&lt;BR /&gt;Once successful you need to put the new kernel in place.&lt;BR /&gt;&lt;BR /&gt;# mv /stand/vmunix /stand/vmunix.prev&lt;BR /&gt;# mv /stand/build/vmunix /stand/vmunix&lt;BR /&gt;# cd /&lt;BR /&gt;# shutdown -r -y 0</description>
      <pubDate>Thu, 25 Jul 2002 20:58:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773003#M75191</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-25T20:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: change kernel parameter and increase virtual memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773004#M75192</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks  a lot for help.&lt;BR /&gt;&lt;BR /&gt;I will use the sam.&lt;BR /&gt;&lt;BR /&gt;zhiyong</description>
      <pubDate>Thu, 25 Jul 2002 21:21:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773004#M75192</guid>
      <dc:creator>szhiyong</dc:creator>
      <dc:date>2002-07-25T21:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: change kernel parameter and increase virtual memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773005#M75193</link>
      <description>see &lt;BR /&gt;&lt;A href="http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html" target="_blank"&gt;http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html&lt;/A&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;A href="http://docs.hp.com//hpux/onlinedocs/os/KCparam.ProcessParamsList.html" target="_blank"&gt;http://docs.hp.com//hpux/onlinedocs/os/KCparam.ProcessParamsList.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In case you have more than one system to apply the new kernel parameter set:&lt;BR /&gt;--&lt;BR /&gt;How to create a SD depot for kernel configuration changes &lt;BR /&gt;DocId: USDUXKBRC00008416   Updated: 11/8/01 8:40:00 AM &lt;BR /&gt;&lt;BR /&gt;PROBLEM&lt;BR /&gt;I want to create a depot that only changes kernel configuration, e.g. some&lt;BR /&gt;kernel tunables. This is especially useful if tuning needs to be done on a&lt;BR /&gt;large number of systems while the end users are not skilled for such tasks.&lt;BR /&gt;Using auch depot end users would only need to perform a simple installaion.&lt;BR /&gt;CONFIGURATION&lt;BR /&gt;HP-UX 10.X, 11.X Software Distributor&lt;BR /&gt;RESOLUTION&lt;BR /&gt;You need to create a depot using the swpackage(1M) command. For this task&lt;BR /&gt;You&lt;BR /&gt;use a product specification file (psf) like this (see swpackage(4) manpage&lt;BR /&gt;for&lt;BR /&gt;details):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ktune.psf&lt;BR /&gt;depot&lt;BR /&gt;  product&lt;BR /&gt;  tag ktune&lt;BR /&gt;  title Dummy product for kernel tuning&lt;BR /&gt;    fileset&lt;BR /&gt;      tag ktune&lt;BR /&gt;      title Dummy fileset for kernel tuning&lt;BR /&gt;      is_reboot true&lt;BR /&gt;      is_kernel true&lt;BR /&gt;    end&lt;BR /&gt;    postinstall ./ktune.postinstall&lt;BR /&gt;  end&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The real work during installation will be done by a script ktune.postinstall&lt;BR /&gt;which is referenced in the psf file.&lt;BR /&gt;&lt;BR /&gt;This example simply adds driver 'stape' and configures nfile to 5000:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;# ktune.postinstall, postinstall for kernel tuning&lt;BR /&gt;&lt;BR /&gt;exitval=0&lt;BR /&gt;UTILS="/usr/lbin/sw/control_utils"&lt;BR /&gt;if [[ ! -f $UTILS ]]&lt;BR /&gt;then&lt;BR /&gt;    echo "ERROR: Cannot find $UTILS"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;. $UTILS&lt;BR /&gt;&lt;BR /&gt;SYSTEM=$SW_SYSTEM_FILE_PATH&lt;BR /&gt;if [[ -z "${SW_DEFERRED_KERNBLD}" ]]&lt;BR /&gt;then&lt;BR /&gt;     mod_systemfile $SYSTEM -a stape                      # add driver&lt;BR /&gt;     mod_systemfile $SYSTEM -t nfile 5000                 # tune nfile&lt;BR /&gt;     if [[ $? -ne 0 ]]&lt;BR /&gt;     then&lt;BR /&gt;         print "ERROR:   Cannot update $SYSTEM"&lt;BR /&gt;         exitval=$FAILURE&lt;BR /&gt;     fi&lt;BR /&gt;fi      # end of "if [[ -z ${SW_DEFERRED_KERNBLD}" ]]&lt;BR /&gt;&lt;BR /&gt;exit $exitval&lt;BR /&gt;# eof&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using the two files above (psf and postinstall script) You should be able to&lt;BR /&gt;create the desired depot using e.g. the command:&lt;BR /&gt;&lt;BR /&gt;# swpackage -x target_type=tape -s ktune.psf @ /tmp/ktune.depot&lt;BR /&gt;&lt;BR /&gt;Installing from ktune.depot using swinstall(1M) will apply the changes,&lt;BR /&gt;rebuild the kernel and reboot the system automatically, e.g.:&lt;BR /&gt;&lt;BR /&gt;# swinstall -x autoreboot=true -s /tmp/ktune.depot \*&lt;BR /&gt;ALT KEYWORDS&lt;BR /&gt;SD SDUX depot kernel tunable tuning swpackage&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 05:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-kernel-parameter-and-increase-virtual-memory/m-p/2773005#M75193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-07-26T05:49:12Z</dc:date>
    </item>
  </channel>
</rss>

