LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-22-2008, 05:40 PM   #1
regmee
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.

Code:
  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.

Regards,
Regmee
 
Old 08-23-2008, 12:11 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

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


Reply


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 06:26 AM
ORA-24123: unable to attach to shared memory segment yrkhond Linux - Newbie 1 03-17-2008 07:17 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Identify a shared memory segment gremlin2000 Linux - General 3 04-03-2004 11:19 AM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM


All times are GMT -5. The time now is 06:19 PM.

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