- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set ARG_MAX variable?
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
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
03-18-2002 05:20 AM
03-18-2002 05:20 AM
How to set ARG_MAX variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 05:38 AM
03-18-2002 05:38 AM
Re: How to set ARG_MAX variable?
/usr/include/limits.h
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 05:55 AM
03-18-2002 05:55 AM
Re: How to set ARG_MAX variable?
Per the sysconf(2) manpage, `getconf ARG_MAX` is documented as:
ARG_MAX _SC_ARG_MAX Maximum total length of the arguments for
exec() in bytes, including environment
data (see exec(2))
On 10.20 you need patch 16751 or equivalent and
its dependencies
When this patch is installed the default environment size is 20478 bytes. To enable the system to use the larger environment size of 2048000 bytes, the following steps must
be followed.
1. A new tunable called `large_ncargs_enabled' must be defined in the sytem file in the following manner large_ncargs_enabled 1
2. A new kernel must be built (using this system file) and the system rebooted.
To return to the default environment size, the new tunable needs to be either removed from the system file, or its value set to zero. A new kernel should then be built (using the modified system file) and the machine rebooted.
On 11 the parameter is bigger by default.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 06:31 AM
03-18-2002 06:31 AM
Re: How to set ARG_MAX variable?
echo *
The shell will complain about line too long because the shell does not have enough space to hold all of these names on one line. The ARG_MAX sets this value but unless the shell allocates it's command line buffers dynamically, it woun't make a difference. No matter how large a new patch will make the ATG_MAX value, there are cases where it won't be long enough.
Instead, look at the command xargs to provide a filter between enormously long lines and commands that have limited capability.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 06:33 AM
03-18-2002 06:33 AM
Re: How to set ARG_MAX variable?
Damn good points!!!
xargs to the rescue?
live free or die
harry