LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-22-2008, 06:40 PM   #1
LQ Newbie
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Linux shared memory segment access problem and x86 Virtual Memory layout.

Hi all,

I have been trying to attach a shared memory segment in a 32-bit x86 machine in the virtual address range ( 0xff80 0000 to 0xffff ffff ) with no luck.

  0xffff ffff+-----------------+  (4096 MB) 4 GB
             |   Problem :(    |
  0xff80 0000+-----------------+  (4088 MB)  
             |                 |
             |                 |
             |                 |
  0x7fff ffff+-----------------+
             |                 |
             |                 |
             |                 |
  0x7f80 0000+-----------------+
             |                 |
             |                 |
             |                 |
  0x0000 0000+-----------------+
This definitely falls in the upper 1 GB address space which belongs to the Kernel.

Is there any way by which I can attach a shared memory segment to one of those addresses in that zone ???

I tried increasing the SHMMAX value to as high as 4 GB. Din't help.

Eventually I will have to attach similarly for an x86_64 architecture. Please let me know if my problem has a solution and the same approach can be applied for a x86_64 architecture that uses canonical form of virtual addresses.

Old 08-23-2008, 01:11 AM   #2
Valery Reznic
ELF Statifier author
Registered: Oct 2007
Posts: 674

Rep: Reputation: 134Reputation: 134
Could you explain what you are trying to achieve ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I repeatedly attach a shared memory segment at the same address? Spirals Linux - Software 3 06-07-2008 07:26 AM
ORA-24123: unable to attach to shared memory segment yrkhond Linux - Newbie 1 03-17-2008 08:17 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 05:05 AM
Identify a shared memory segment gremlin2000 Linux - General 3 04-03-2004 12:19 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 01:50 PM

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration