2013年12月5日 星期四

[linux] 引數列項目過長 argument list too long




buffer 的大小是 MAX_ARG_PAGES * "page 大小" --- 一般而言是 32 * 4k = 128k。


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.


python sys.argv limitations? - Stack Overflow
http://stackoverflow.com/questions/5533704/python-sys-argv-limitations


Moundalexis.com: /bin/rm: Argument list too long.
http://www.moundalexis.com/archives/000035.php


沒有留言:

張貼留言