LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-09-2013, 10:17 AM   #1
Neven1986
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Shared memory segments - Linux vs. Unix


Hello guys,

I have one question regarding shared memory segments, as I need to set this on my new Linux server.

In Unix (Solaris 10) there is possibility to set the number of shared memory segments to lets say 50, like this:

Code:
prctl -n project.max-shm-ids -r -v 50 -i project default
and you can retrieve this information by issuing:

Code:
prctl -n project.max-shm-ids -i project default
But, I'm unable to find this kind of option in Linux (CentOS 6.4).
Is there even possibility to do this in Linux?

I know that you can set the shmmax parameter, but I think this is not what I'm looking for.

Thank you in advance
 
Old 12-09-2013, 10:55 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Hmm, what about a combination of shmall and shmmax? One could limit the amount of segments that way? Just a shot in the dark. Searching shared memory segment in the Kernel documentation yields the following results.

Code:
$ grep -irl 'shared memory segment' Documentation
Documentation/isdn/README.sc
Documentation/vm/numa_memory_policy.txt
Documentation/vm/hugetlbpage.txt
Documentation/sysctl/kernel.txt
Documentation/sysctl/vm.txt
Documentation/unshare.txt
Documentation/filesystems/xip.txt
Documentation/filesystems/proc.txt
Documentation/security/credentials.txt

Last edited by sag47; 12-09-2013 at 10:57 AM.
 
Old 12-09-2013, 04:50 PM   #3
Neven1986
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sag47 View Post
Hmm, what about a combination of shmall and shmmax? One could limit the amount of segments that way? Just a shot in the dark. Searching shared memory segment in the Kernel documentation yields the following results.

Code:
$ grep -irl 'shared memory segment' Documentation
Documentation/isdn/README.sc
Documentation/vm/numa_memory_policy.txt
Documentation/vm/hugetlbpage.txt
Documentation/sysctl/kernel.txt
Documentation/sysctl/vm.txt
Documentation/unshare.txt
Documentation/filesystems/xip.txt
Documentation/filesystems/proc.txt
Documentation/security/credentials.txt
Thank you very much for response. It seems that I'll need to look into documentation.
I thought maybe someone knows this by heart and has experience in both worlds with following.
 
  


Reply



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
Write, Read messages using Message Queues, Shared Memory or Unix Domain Sockets harig Programming 4 02-19-2013 08:58 AM
How to create a shared memory and some shared objects in linux? jeremy28 Programming 6 06-11-2010 05:21 AM
Does /dev/shm reduce memory available for non-shared memory segments? mightyscotchpine Linux - Server 1 09-22-2009 06:58 PM
gencore() does not dump core of shared memory segments anubhuti_k AIX 0 01-15-2007 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration