Veritas-bu

[Veritas-bu] Linux Shared Memory Configuration

2006-09-19 14:25:34
Subject: [Veritas-bu] Linux Shared Memory Configuration
From: pkeating at bank-banque-canada.ca (Paul Keating)
Date: Tue, 19 Sep 2006 14:25:34 -0400
Your max shared memory "shmmax" value should be at minimum:

NUMBER_DATA_BUFFERS x SIZE_DATA_BUFFERS x "number of tape drives" x "max
multiplex"

I don't have the doc readily available to cite, but in essence, 

If you have late model drives that are using a 256k buffer, and you have
4 connected drives, and you multiplex 4 streams per drive, and have 64
buffers configured, then you should have a shmmax of:

262144 x 64 x 4 x 4 = 268435456

Paul

-- 


> -----Original Message-----
> From: veritas-bu-bounces at mailman.eng.auburn.edu 
> [mailto:veritas-bu-bounces at mailman.eng.auburn.edu] On Behalf 
> Of Kathryn Hemness
> Sent: September 19, 2006 2:10 PM
> To: Nardello, John
> Cc: veritas-bu at mailman.eng.auburn.edu
> Subject: Re: [Veritas-bu] Linux Shared Memory Configuration
> 
> 
> Greetings,
> 
> Thanks to all who responded....Most of the suggestions were helpful.
> 
> This is a good technote and I'm going to try adjusting my values.
> Regarding bob944's comments, my Linux media servers ARE running
> with default kernel parameters and I'm seeing shared memory errors.
> The files in the /usr/openv/netbackup/db/config were recommended
> for both Solaris and Linux.  It is for these reasons that I posted
> my query.
> 
> I'm posting my current values for the parameters and indicating
> the recommended minimal settings in parenthesis:
> 
> kernel.msgmnb = 16384 (65536)
> kernel.msgmni = 16    (256)
> kernel.msgmax = 8192  (8192)
> 
> 
> kernel.shmmni = 4096     (1024)
> kernel.shmall = 2097152  (nothing indicated in document)
> kernel.shmmax = 33554432 (16777216) - my value is already 
> larger, so I'm keeping it.
> 
> 
> kernel.sem = 250        32000   32      128
>             (300         1024   32      1024)
>            semmsl,     semmns, semopm, semmni)
> 
> My Linux servers have 4GB of memory so I can always make 
> upward adjustments.
> 
> 
> 
> On Tue, 19 Sep 2006, Nardello, John wrote:
> 
> > Date: Tue, 19 Sep 2006 08:21:59 -0700
> > From: "Nardello, John" <john.nardello at wamu.net>
> > To: Kathryn Hemness <kfhemness at ucdavis.edu>,
> >      veritas-bu at mailman.eng.auburn.edu
> > Subject: RE: [Veritas-bu] Linux Shared Memory Configuration
> >
> > Technote talking about Linux kernel tuning recommendations:
> > http://support.veritas.com/docs/263755
> >
> > A little old but I doubt the variables have changed any.
> >
> > - John Nardello
> >
> > -----Original Message-----
> > From: veritas-bu-bounces at mailman.eng.auburn.edu
> > [mailto:veritas-bu-bounces at mailman.eng.auburn.edu] On 
> Behalf Of Kathryn
> > Hemness
> > Sent: Monday, September 18, 2006 3:59 PM
> > To: veritas-bu at mailman.eng.auburn.edu
> > Subject: [Veritas-bu] Linux Shared Memory Configuration
> >
> > Greetings,
> >
> > My backup enterprise currently consists of a Solaris 9 Sun 
> V240 master
> > and 3 Sun X4200 RHEL3 Linux Media Servers running NB51MP5.
> >
> > I've been getting the following messages for backups and 
> duplications
> > to storage units on my Linux media servers:
> >
> >    "problems encountered during setup of shared memory (89)"
> >
> > I use disk storage units and a mixed LTO2/LTO3 library.
> >
> > I've attempted to setup my Linux media servers similar to 
> my Solaris 9
> > master by using the same NUMBER/SIZE_DATA_BUFFERS files in
> > /usr/openv/netbackup/db/config.  But on my Solaris 9 master, I also
> > had /etc/system settings for msgsys, semsys, and shmsys values.
> >
> > I haven't been able to find anything about needing similar
> > /etc/system tuning on Linux (I believe the /etc/system 
> equivalents are
> > set
> > via the /etc/sysctl.conf file).
> >
> > I'm hoping someone can tell me if all of the /etc/system 
> parameters can
> > be set with sysctl on Linux and if their names are the 
> same.  Here are
> > my
> > current Solaris /etc/system parameters:
> >
> > set msgsys:msginfo_msgmap=512
> > set msgsys:msginfo_msgmax=8192
> > set msgsys:msginfo_msgmnb=65536
> > set msgsys:msginfo_msgmni=256
> > set msgsys:msginfo_msgssz=16
> > set msgsys:msginfo_msgtql=512
> > set msgsys:msginfo_msgseg=8192
> >
> > set semsys:seminfo_semmap=64
> > set semsys:seminfo_semmni=1024
> > set semsys:seminfo_semmns=1024
> > set semsys:seminfo_semmnu=1024
> > set semsys:seminfo_semmsl=300
> > set semsys:seminfo_semopm=32
> > set semsys:seminfo_semume=64
> >
> > set shmsys:shminfo_shmmax=536870912
> > set shmsys:shminfo_shmmin=1
> > set shmsys:shminfo_shmmni=220
> > set shmsys:shminfo_shmseg=100
> >
> > Any help is appreciated.
> > --Kathy
> > _______________________________________________
> > Veritas-bu maillist  -  Veritas-bu at mailman.eng.auburn.edu
> > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> >
> 
> 
> --Kathy
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu at mailman.eng.auburn.edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 
-------------- next part --------------
====================================================================================

La version fran?aise suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank 
of
Canada does not waive any related rights. Any distribution, use, or copying of 
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately 
from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le pr?sent courriel peut contenir de l'information privil?gi?e ou 
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires d?sign?s est interdite Si vous 
recevez
ce courriel par erreur, veuillez le supprimer imm?diatement et envoyer sans 
d?lai ?
l'exp?diteur un message ?lectronique pour l'aviser que vous avez ?limin? de 
votre
ordinateur toute copie du courriel re?u.