Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Jan Kundrát <jkt@g.o>
Subject: Re: Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
Date: Mon, 09 Jun 2008 00:08:53 +0200
Alin Năstac wrote:
> I remember that one time I had to split a command like dohtml 
> "${S}"/something/*.{png,html} because the line was too long. At that 
> time, bash had a limit of 32K. Now is what ... 1M?

from execve(2):

Limits on size of arguments and environment

  Most Unix implementations impose some limit on the total size of the 
command-line argument (argv) and environment (envp) strings that may be 
passed to a new program. POSIX.1 allows an implementation to advertise 
this limit using the ARG_MAX constant (either defined in <limits.h> or 
available at run time using the call sysconf(_SC_ARG_MAX)).

  On Linux prior to kernel 2.6.23, the memory used to store the 
environment and argument strings was limited to 32 pages (defined by the 
kernel constant MAX_ARG_PAGES). On architectures with a 4-kB page size, 
this yields a maximum size of 128 kB.

  On kernel 2.6.23 and later, most architectures support a size limit 
derived from the soft RLIMIT_STACK resource limit (see getrlimit(2)). 
For these architectures, the total size is limited to 1/4 of the allowed 
stack size, the limit per string is 32 pages (the kernel constant 
MAX_ARG_STRLEN), and the maximum number of strings is 0x7FFFFFFF. (This 
change allows programs to have a much larger argument and/or environment 
list. Imposing the 1/4-limit ensures that the new program always has 
some stack space.) Architectures with no memory management unit are 
excepted: they maintain the limit that was in effect before kernel 2.6.23.

Cheers,
-jkt

-- 
cd /local/pub && more beer > /dev/mouth

Attachment:
signature.asc (OpenPGP digital signature)
References:
lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Tiziano Müller
Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Alin Năstac
Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Michael Sterrett -Mr. Bones.-
Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Diego 'Flameeyes' Pettenò
Re: Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Alin Năstac
Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Diego 'Flameeyes' Pettenò
Re: Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
-- Alin Năstac
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
Next by thread:
Re: Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
Previous by date:
Re: Re: lastrite: dev-cpp/libherdstat and app-portage/herdstat
Next by date:
Automated Package Removal and Addition Tracker, for the week ending 2008-06-08 23h59 UTC


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.