The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] unix v5 limitations
@ 2014-08-09 15:32 Noel Chiappa
  2014-08-10 23:05 ` Sven Mascheck
  0 siblings, 1 reply; 4+ messages in thread
From: Noel Chiappa @ 2014-08-09 15:32 UTC (permalink / raw)


    > From: Mark Longridge <cubexyz at gmail.com>

    > The first problem I had was I couldn't just cp over all the
    > /usr/source/s1 files to the new drive because of "Arg list too long"

John Cowan nailed this; as an aside, I don't know about V5, but in vanilla V6
the entire argument list had to fit into one disk buffer (I would assume V5 is
the same).

The PWB changes to v6 included a rewrite of exec() to accumulate the argument
list in swap space, so it could be much longer; the maximum length was a
parameter, NCARGS, which was set to 5120 (10 blocks) by default.

       Noel




^ permalink raw reply	[flat|nested] 4+ messages in thread
* [TUHS] unix v5 limitations
@ 2014-08-09 14:37 Mark Longridge
  2014-08-09 15:04 ` John Cowan
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Longridge @ 2014-08-09 14:37 UTC (permalink / raw)


Firstly, I should mention I'm using simh to simulate Unix version 5.

Well I tried to reorganize the files in unix v5. Mainly I wanted more
room on rk0 so I figured I'd create a new drive and put all the source
from /usr/source/s1 on it.

The first problem I had was I couldn't just cp over all the
/usr/source/s1 files to the new drive because of "Arg list too long"
so I figured I would just create an archive file called all.a which
would include all the files in /usr/source/s1 and copy that over.

But then I got "phase error" when I tried to keep adding files to the
archive (I had to do this in stages, e.g. ar r all.a /usr/source/s1/a*
then ar u all.a /usr/source/s1/b* etc). Phase error seemed to occur
when the archive got larger than around 160,000 bytes. So I ended up
creating 3 archive files to keep from getting "phase error".

I was wondering does anyone understand what the limits are for the cp
and ar commands?

Mark



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-10 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 15:32 [TUHS] unix v5 limitations Noel Chiappa
2014-08-10 23:05 ` Sven Mascheck
  -- strict thread matches above, loose matches on Subject: below --
2014-08-09 14:37 Mark Longridge
2014-08-09 15:04 ` John Cowan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).