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: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-07 06:54:57 PST Xref: gmd.de comp.org.decus:2666 comp.os.vms:41691 comp.sys.dec:13945 comp.unix.advocacy:878 Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!mozart.amil.jhu.edu!blaze.cs.jhu.edu!jhunix.hcf.jhu.edu!grinch.hcf.jhu.edu!doug From: doug@grinch.hcf.jhu.edu (Douglas W. O'Neal) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 7 Mar 1994 14:54:57 GMT Organization: Homewood Academic Computing, Johns Hopkins University Distribution: world Message-ID: <2lff81INNbr5@jhunix.hcf.jhu.edu> References: <2l7pbn$kk9@gap.cco.caltech.edu> <2ledvi$pst@gazette.bcm.tmc.edu> NNTP-Posting-Host: grinch.hcf.jhu.edu In article <2ledvi$pst@gazette.bcm.tmc.edu> tso@cephalo.neusc.bcm.tmc.edu (Dan Ts'o) writes: ->In article <2l7pbn$kk9@gap.cco.caltech.edu> carl@SOL1.GPS.CALTECH.EDU writes: ->)The point is that the shell technique for expanding wildcards requires that all ->)instances of the expansion be placed in the argument list. I've yet to see a ->)shell that didn't have a hard-coded limit to the size of the argument list ->)(yeah, I know, you don't have to have one; you COULD make a guess as to how ->)many arguments you're going to generate, malloc space for pointers to them, if ->)you exceed the estimate, malloc more space, copy the already generated ->)pointers, and iterate). -> -> 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. Doug -- Doug O'Neal, Distributed Systems Programmer, Johns Hopkins University doug@jhuvms.bitnet, doug@jhuvms.hcf.jhu.edu, mimsy!aplcen!jhunix!doug