Technical article 109901

Compaq server reports "WARNING:crom:copyin_all_reg():sptalloc() failed Could not allocate memory."

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

On a Compaq system, running SCO OpenServer software and the Compaq Wellness Driver, the following message repeatedly appears:

WARNING:crom:copyin_all_reg():sptalloc() failed Could not
 allocate memory

This error may be concurrent with system slowdown to the point of total unavailability.

Cause

sptalloc is unable to allocate more kernel memory for the Compaq Wellness Driver, crom.

Solution

The kernel tunable SPTMAP may be used to increase the kernel virtual address space. This can be done as root at the command line or through GUI:

1. Launch SCOadmin and choose "Hardware/Kernel Manager."

2. Choose "Tune Parameters."

3. Under Performance tunables, choose "2. Processes and Paging."

4. Find SPTMAP and enter a new value.  The default value is 200;
   the minimum and maximum values are 100 and 500.
5. Quit SCOadmin, relink and reboot.

The warning has also been observed in systems that have been tuned for a large I/O buffer cache. Increasing the buffer cache with the kernel tunable NBUF can improve disk performance but leave too little memory for users and applications (like crom). NBUF, too, is tunable via the Hardware/Kernel Manager:

1. Launch SCOadmin and choose "Hardware/Kernel Manager."

2. Choose "Tune Parameters."

3. Under Performance Tunables, choose "1. Buffers Management."

4. Find NBUF and enter new value.  To reset to default, enter 0.
Or, if you want to experiment with different values, consult the
Performance Guide for advice on this tunable.
5. Quit SCOadmin, relink and reboot.
NOTES:    The crom driver is used mainly by the Compaq Wellness Driver
          to make calls into the ROM to read EISA information and to log
          events (such as ECC correctable memory, fan and temperature
          failures, and so on).  Usually crom is called as the result
          of a Compaq Insight Manager Agent polling a driver periodically.

See also

SCO OpenServer Performance Guide

From the Xinuos technical article database, record 109901. Reproduced with permission. The original is at www.sco.com/ta/109901, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.