From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,a1e1b83963a3eef8 X-Google-Attributes: gidfee84,public From: "Pit Linnartz" Subject: Re: invalid argument Date: 1999/12/16 Message-ID: <83b7fg$o1p$1@gamma.ecomp.net>#1/1 X-Deja-AN: 561592308 References: <3858a061@news.lhsgroup.com> X-Server-Date: 16 Dec 1999 17:28:16 GMT X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: e.comp Engineering GmbH, Germany Newsgroups: comp.unix.osf.osf1 check the datatype. any chance you aren't using size_t type. take a look at read (2), ERROR CODE section. EINVAL names some reason while being returned. Pit Michael Sch�fer wrote in message <3858a061@news.lhsgroup.com>... >during a read of a 2560000000 (2.56GB) file into memory I got the error: >invalid argument. If I choose a file smaller then 2GB it works. > >Before that I have fixed a problem allocating Memory for this file raising >parameter per-proc-data-siye (was 2GB, now 4GB) > >I am using lazy swapping, all process parameters seam to be ok. > >per-proc-stack-size = 2097152 >per-proc-data-size = 4294967296 >per-proc-address-space = 4294967296 > >Thanks for help, > >Michael Schaefer > >