APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > OSR5 number of semaphores SEMUME SEMMNU
Printer Friendly Version




News Group Posts

OSR5 number of semaphores SEMUME

SEMMNU


From: Bela Lubkin <belal@sco.com>
Subject: Re: i386ld locore.o 40: can't allocate section .bss into owner KV_loads
Date: Wed, 29 Jan 2003 06:09:12 GMT
References: <zqvZ9.8345$LY2.502697@newsc.telia.net> 

Jakob Harrysson wrote:

> I get this error message when I relink the kernal !
> 
> i386ld locore.o 40: can't allocate section .bss into owner KV_loads
> i386ld locore.o 40: illegal operator in expression
> ERROR: Can not link-edit unix
> idbuild: idmkunix had errors.
> System build failed.
> 
> I had risen the semafore values like this:
> 
> SEMMNI  15
> SEMMNU  800
> SHMMAX  100663296
> SEMMNS  800
> SEMUME  800
> SEMMSL  800
> 
> I use a micronetics database called mumps and we are 160 users working
> active in the system.



These settings change the sizes of arrays in
/etc/conf/pack.d/sem/space.c:

  struct  semid_ds        sema[SEMMNI] ;
  struct  sem     sem[SEMMNS] ;
  int             semu[((16+8*SEMUME)*SEMMNU+NBPW-1)/NBPW] ;

The sizes of these structures are 20, 8 and 4 bytes each.  So we have:

  struct  semid_ds        sema[SEMMNI] ;
     20 * 15 = 300 bytes

  struct  sem     sem[SEMMNS] ;
     8 * 800 = 6400 bytes

  int             semu[((16+8*SEMUME)*SEMMNU+NBPW-1)/NBPW] ;
     4 * (((16+8*800)*800+NBPW-1)/NBPW)
     NBPW is 4 (sys/param.h):
     4 * (((16+8*800)*800+4-1)/4) =
     4 * ((6416      *800+4-1)/4) =
     4 * ((  5132800     +4-1)/4) =
     4 * ((  5132803         )/4) =
             5132800














You're asking for a semu[] array that's 5132800 bytes large.

The OpenServer kernel's total text + data + bss size is limited to 
8128KiB, or 8323072 bytes.  Having just increased its size by about 5
million, you've exceeded that limit.

You can have 800 SEMUME, or 800 SEMMNU, but not both.  Find out what
your database actually needs instead of raising every parameter you can
find.

>Bela<
 

If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



ad

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide


 I sell and support
 Kerio Mail server
g_face.jpg

This post tagged:

       - Bela
       - Kernel
       - SCO_OSR5




Unix/Linux Consultants

Skills Tests

Guest Post Here