Re: the mmap() problem, a'la "grep x /dev/zero"

Michael Meskes (meskes@informatik.rwth-aachen.de)
Fri, 7 Jun 1996 08:07:09 +0200 (MET DST)


Linus Torvalds writes:
> Please do tell if this makes a difference for you..

I tried once again (with 1.99.13):

circe:meskes 105) grep x /dev/zero
grep: memory exhausted

It allocated much more memory than it should. I had a limit of 4MB, but the
size went up to 12MB (5MB resident). Also I was able to run the memtest
program on 8MB despite datasize limited to 1MB. Hmm I have to check the
sources to see what happened. And my program with a global definition of
'char a[128MB]' still dumpos core.

Michael

-- 
Michael Meskes                   |    _____ ________ __  ____
meskes@informatik.rwth-aachen.de |   / ___// ____/ // / / __ \___  __________
meskes@sanet.de                  |   \__ \/ /_  / // /_/ /_/ / _ \/ ___/ ___/
meskes@debian.org                |  ___/ / __/ /__  __/\__, /  __/ /  (__  )
Use Debian Linux!		 | /____/_/      /_/  /____/\___/_/  /____/