linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: mmap() failed on Linux 2.4.18-10smp with 4GB RAM
@ 2002-09-25 17:50 Lingli Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Lingli Zhang @ 2002-09-25 17:50 UTC (permalink / raw)
  To: linux-kernel

Hi,

Thanks a lot to those who replied to me. Big help!

Now my question is how do I know where linux puts kernel in the memory?
What address is safe to mmap a big chunk?Is there a way to force it to be a
specific address? 

Best Regards!

Lingli

-- 
Lingli Zhang
lingli_z@umail.ucsb.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread
* mmap() failed on Linux 2.4.18-10smp with 4GB RAM
@ 2002-09-25  4:59 Lingli Zhang
  2002-09-25  6:18 ` Steffen Persvold
  0 siblings, 1 reply; 3+ messages in thread
From: Lingli Zhang @ 2002-09-25  4:59 UTC (permalink / raw)
  To: linux-kernel

Hi there,

My machine is a 2-Processor Pentium 4 (Xeon) 2.4GHz e7500 Chipset with 4GB RAM.
I installed Redhat (kernel: Linux 2.4.18-10bigmem) on it. 

But when I run following piece of code:
========================================
#include <unistd.h>
#include <sys/mman.h>
int main(){
   mmap ((void *) 1090519040, 17000000,
         PROT_READ | PROT_WRITE | PROT_EXEC,
         MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
}
===========================================
It gives out "segmentation fault". It works well if I change 17000000
to 16000000.

I have tried Linux 2.4.18-10smp kernel, same problem.

Is there anyone have any idea what's going on here? Or do you have any
recommendation that which version of Linux I should use for my machine to work
around this problem?

Thanks a lot!

Lingli
-- 
Lingli Zhang
lingli_z@umail.ucsb.edu

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

end of thread, other threads:[~2002-09-25 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 17:50 mmap() failed on Linux 2.4.18-10smp with 4GB RAM Lingli Zhang
  -- strict thread matches above, loose matches on Subject: below --
2002-09-25  4:59 Lingli Zhang
2002-09-25  6:18 ` Steffen Persvold

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).