Technical article 125423

OpenServer 5: What is the relationship between NSTRPAGES, NCLIST and MAX_FLCKREC and what is the maximum these can be set to?

OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

What are the maximum values for the NSTRPAGES, NCLIST and MAX_FLCKREC kernel parameters?

Solution

The memory for file lock records is allocated out of the
same area of memory that is used for streams buffers and
tty clists.  The upper limit on the size of this area is
approximately 60 Megabytes (or 62914560 bytes).

The total memory which could be allocated for streams buffers, clists and lock records cannot exceed 60 Megabytes.

Streams buffers are allocated in units of 4096 byte pages, clists are 70 bytes each, and lock records are 64 bytes each, so:

(NSTRPAGES * 4096) + (NCLIST * 70) + (MAX_FLCKREC * 64) <= 62914560

From the Xinuos technical article database, record 125423. Reproduced with permission. The original is at www.sco.com/ta/125423, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.