Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > what is connection between shared memory and semaphore with sybase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-08, 01:14
jayantpathak jayantpathak is offline
Registered User
 
Join Date: Feb 2008
Posts: 6
what is connection between shared memory and semaphore with sybase

Is there any formula to calculate shared memory will setting in /etc/system.
What is connection between semaphore with sybase.
how much value we can set in /etc/system in place of shmmax.
Reply With Quote
  #2 (permalink)  
Old 06-19-08, 06:00
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 370
Quote:
Originally Posted by jayantpathak
Is there any formula to calculate shared memory will setting in /etc/system.
What is connection between semaphore with sybase.
how much value we can set in /etc/system in place of shmmax.


Semaphore is the actual memory used by the Sybsae instance
Shared Memory is the maximum memory all semaphores can use.

ipcs -m (short display), ipcs -a (full display) show sthis.

Ideally if its a box which is only used by Sybase, you can set it to the max possible leaving some for the O/S ofcourse.

prtconf | grep Mem - will show you the memory currently available.

Leave 20% for O/S and allocate the rest for shmmax.
Reply With Quote
  #3 (permalink)  
Old 06-20-08, 02:48
jayantpathak jayantpathak is offline
Registered User
 
Join Date: Feb 2008
Posts: 6
Kindly help me

Thanks,
As per my understanding semaphore is a locking mechanism.
When i start the server it will create one instance and that instance is taking some amount of memory to run and semaphore is setting a lock on that part of shared memory.

As per above mail, If my shared memory is 10Gb and i start the server it took 7Gb memory to start that time it will create one sybase instance. At this time what will be the semaphore values.

Kindly help me.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On