From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-07 09:46:46 PST Xref: gmd.de comp.org.decus:2673 comp.os.vms:41706 comp.sys.dec:13952 comp.unix.advocacy:889 Path: gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!howland.reston.ans.net!wupost!bcm!cephalo.neusc.bcm.tmc.edu!tso From: tso@cephalo.neusc.bcm.tmc.edu (Dan Ts'o) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 7 Mar 1994 17:46:46 GMT Organization: Baylor College of Medicine, Houston,Tx Distribution: world Message-ID: <2lfpa6$dn7@gazette.bcm.tmc.edu> References: <2l7pbn$kk9@gap.cco.caltech.edu> <2ledvi$pst@gazette.bcm.tmc.edu> <2lff81INNbr5@jhunix.hcf.jhu.edu> NNTP-Posting-Host: cephalo.neusc.bcm.tmc.edu In article <2lff81INNbr5@jhunix.hcf.jhu.edu> doug@grinch.hcf.jhu.edu (Douglas W. O'Neal) writes: )-> In most UNIX's, the arg space limit is not truly limited by the shell, )->but by the kernel. Basically the kernel has to put that arg list somewhere )->before performing the exec() call. It is data being transfered from the old )->program image to the new. In PDP-11 days it used to be terribly )->restricted (I believe it used a filesystem buffer, 512bytes). Most UNIX's )->these days have limits like 10-20Kb. I suppose a better alternative would be )->to save the old process memory space while doing the exec and copy the args )->from that memory to the new address space before destroying the old image. )->However, then you would end up with situations like having to pagein the args )->if there were too many, or not being able to exec a 100Mb program from a 100Mb )->program if your swap space were 120Mb. ) )Solaris appears to be an exception to the statement that the arg space limit )is set by the kernel. As has been pointed out in earlier posts, creating )a directory with (say) 1500 files in it and giving any command with a )filelist of * (e.g., chmod 755 *) works under /bin/sh but fails under )/bin/csh. Test system is a Sparc 10 running SunOS 5.3. No I don't believe Solaris is an exception, it just has a much bigger NCARGS. Look in /usr/include/sys/param.h and you will find that NCARGS is 0x100000 (1Mb), while Ultrix is only 10-20kb.