<?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 memory stack in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000923#M20397</link>
    <description>Hello everbody:&lt;BR /&gt;when issuing the ulimit -a, on my tru64 machone, I get the following:&lt;BR /&gt;&lt;BR /&gt;root@billing4# ulimit -a&lt;BR /&gt;time(seconds) unlimited&lt;BR /&gt;file(blocks) unlimited&lt;BR /&gt;data(kbytes) 10485760&lt;BR /&gt;stack(kbytes) 32768&lt;BR /&gt;memory(kbytes) 10190528&lt;BR /&gt;coredump(blocks) 0&lt;BR /&gt;nofiles(descriptors) 4096&lt;BR /&gt;vmemory(kbytes) 6291456&lt;BR /&gt;&lt;BR /&gt;when another user issued it he got different data parameters, when I as a root switched to that user using "su - user" i kept getting the same parameters as root.&lt;BR /&gt;&lt;BR /&gt;my question now, can I increase the size of the stack, is it per user, or per session, and whast the potential side effects for such step??&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
    <pubDate>Wed, 16 May 2007 04:10:41 GMT</pubDate>
    <dc:creator>Aladdin_2</dc:creator>
    <dc:date>2007-05-16T04:10:41Z</dc:date>
    <item>
      <title>memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000923#M20397</link>
      <description>Hello everbody:&lt;BR /&gt;when issuing the ulimit -a, on my tru64 machone, I get the following:&lt;BR /&gt;&lt;BR /&gt;root@billing4# ulimit -a&lt;BR /&gt;time(seconds) unlimited&lt;BR /&gt;file(blocks) unlimited&lt;BR /&gt;data(kbytes) 10485760&lt;BR /&gt;stack(kbytes) 32768&lt;BR /&gt;memory(kbytes) 10190528&lt;BR /&gt;coredump(blocks) 0&lt;BR /&gt;nofiles(descriptors) 4096&lt;BR /&gt;vmemory(kbytes) 6291456&lt;BR /&gt;&lt;BR /&gt;when another user issued it he got different data parameters, when I as a root switched to that user using "su - user" i kept getting the same parameters as root.&lt;BR /&gt;&lt;BR /&gt;my question now, can I increase the size of the stack, is it per user, or per session, and whast the potential side effects for such step??&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
      <pubDate>Wed, 16 May 2007 04:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000923#M20397</guid>
      <dc:creator>Aladdin_2</dc:creator>
      <dc:date>2007-05-16T04:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000924#M20398</link>
      <description>I think man 'ulimit' should have the info you are looking for.</description>
      <pubDate>Wed, 16 May 2007 04:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000924#M20398</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2007-05-16T04:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000925#M20399</link>
      <description>Thanks alot for your reply.&lt;BR /&gt;actually I serached there and on the net before posting this thread, but couldnt find an answer to my question about increasing the size of stack.</description>
      <pubDate>Wed, 16 May 2007 04:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000925#M20399</guid>
      <dc:creator>Aladdin_2</dc:creator>
      <dc:date>2007-05-16T04:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000926#M20400</link>
      <description>Not sure if I got the point.&lt;BR /&gt;Do you want to increase the size of the stack for all users or some users?&lt;BR /&gt;And post output of:&lt;BR /&gt;# sysconfig -q proc</description>
      <pubDate>Wed, 16 May 2007 05:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000926#M20400</guid>
      <dc:creator>Vladimir Fabecic</dc:creator>
      <dc:date>2007-05-16T05:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000927#M20401</link>
      <description>Thanks vladimir:&lt;BR /&gt;soory if it was unclear, first I would like to know if this stack is shared for all users, or each one has its own. The other thing If i can increase it to a specific user, and what are the side effects I have to be aware of??&lt;BR /&gt;&lt;BR /&gt;Here is the output:&lt;BR /&gt;proc:&lt;BR /&gt;max_proc_per_user = 2048&lt;BR /&gt;max_threads_per_user = 4096&lt;BR /&gt;per_proc_stack_size = 33554432&lt;BR /&gt;max_per_proc_stack_size = 33554432&lt;BR /&gt;per_proc_data_size = 6442450944&lt;BR /&gt;max_per_proc_data_size = 10737418240&lt;BR /&gt;max_per_proc_address_space = 10737418240&lt;BR /&gt;per_proc_address_space = 6442450944&lt;BR /&gt;executable_stack = 0&lt;BR /&gt;autonice = 0&lt;BR /&gt;autonice_time = 600&lt;BR /&gt;autonice_penalty = 4&lt;BR /&gt;open_max_soft = 4096&lt;BR /&gt;open_max_hard = 4096&lt;BR /&gt;ncallout_alloc_size = 8192&lt;BR /&gt;round_robin_switch_rate = 0&lt;BR /&gt;sched_min_idle = 0&lt;BR /&gt;give_boost = 1&lt;BR /&gt;maxusers = 4096&lt;BR /&gt;num_wait_queues = 4096&lt;BR /&gt;num_timeout_hash_queues = 4096&lt;BR /&gt;enhanced_core_name = 0&lt;BR /&gt;enhanced_core_max_versions = 16&lt;BR /&gt;exec_disable_arg_limit = 0&lt;BR /&gt;dump_cores = 1&lt;BR /&gt;dump_setugid_cores = 0&lt;BR /&gt;executable_data = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks alot</description>
      <pubDate>Wed, 16 May 2007 06:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000927#M20401</guid>
      <dc:creator>Aladdin_2</dc:creator>
      <dc:date>2007-05-16T06:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000928#M20402</link>
      <description>This stack is for single proces, not for all.&lt;BR /&gt;Note that ulimit value for ordinary users&lt;BR /&gt;stack(kbytes) &lt;BR /&gt;is result of kernel parameter&lt;BR /&gt;per_proc_stack_size&lt;BR /&gt;Also note there is kernel parameter&lt;BR /&gt;max_per_proc_stack_size&lt;BR /&gt;This is the maximum value of stack that can be increased by ulimit command.&lt;BR /&gt;When you do "su - user" you get ulimit values of "previous" proces, in your case from root.&lt;BR /&gt;If you want "default" stack for all users, then define this value for "per_proc_stack_size" kernel parameter. If you want some users to have biger value put appropriate ulimit command in user's .profile (or other depending on shell). &lt;BR /&gt;&lt;BR /&gt;Not sure if I answered your question. If not, please be more specific.</description>
      <pubDate>Wed, 16 May 2007 06:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000928#M20402</guid>
      <dc:creator>Vladimir Fabecic</dc:creator>
      <dc:date>2007-05-16T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000929#M20403</link>
      <description>Also look man pages for "sys_attrs_proc"</description>
      <pubDate>Wed, 16 May 2007 06:55:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000929#M20403</guid>
      <dc:creator>Vladimir Fabecic</dc:creator>
      <dc:date>2007-05-16T06:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000930#M20404</link>
      <description>Two additions to what vladimir said:&lt;BR /&gt;&lt;BR /&gt;1) The user may be running a different shell&lt;BR /&gt;which has a built-in ulimit so it will report&lt;BR /&gt;those values and not the system values.  Shell&lt;BR /&gt;internal limits only sometimes affect programs.&lt;BR /&gt;To see the system limit have the user run:&lt;BR /&gt;/usr/bin/ulimit&lt;BR /&gt;&lt;BR /&gt;2) Well-written programs should not need more&lt;BR /&gt;than the 32MB of stack allowed on your system&lt;BR /&gt;so you should ask why the user needs more.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 May 2007 07:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000930#M20404</guid>
      <dc:creator>jim owens_1</dc:creator>
      <dc:date>2007-05-16T07:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000931#M20405</link>
      <description>Thanks alot for your reply guys.&lt;BR /&gt;your answers really made it clear, in case I want to increase the stack limit for some user, or some process what are the issues or side effects I should be aware of??</description>
      <pubDate>Wed, 16 May 2007 07:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000931#M20405</guid>
      <dc:creator>Aladdin_2</dc:creator>
      <dc:date>2007-05-16T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: memory stack</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000932#M20406</link>
      <description>If you increase the stack limit for some user what are the issues or side effects?&lt;BR /&gt;That will allow more memory to be addresed (used) by process threads.&lt;BR /&gt;As Jim said, well-written programs should not need more than 32MB of stack, but some programs may need more. In that case you must increase stack limit.&lt;BR /&gt;In case you have enough memory, it should not be a problem.</description>
      <pubDate>Wed, 16 May 2007 08:08:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-stack/m-p/4000932#M20406</guid>
      <dc:creator>Vladimir Fabecic</dc:creator>
      <dc:date>2007-05-16T08:08:03Z</dc:date>
    </item>
  </channel>
</rss>

