From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,20b261795a1761e1,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-08-02 01:02:49 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: banny52@yahoo.com (Ginny E. Kim) Newsgroups: comp.unix.tru64 Subject: Kernel memory Date: 2 Aug 2001 01:02:49 -0700 Organization: http://groups.google.com/ Message-ID: <2f6bec0a.0108020002.29080aa8@posting.google.com> NNTP-Posting-Host: 210.205.15.123 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 996739369 1460 127.0.0.1 (2 Aug 2001 08:02:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Aug 2001 08:02:49 GMT Xref: archiver1.google.com comp.unix.tru64:4040 -------------------- #if defined(__DECC) && __DECC_VER >= 50860003 #define FINDINDEX(size) (__builtin_isconstant(size) ? BUCKETINDEX(size) : -1) #else #define FINDINDEX(size) BUCKETINDEX(size) #endif #define MALLOC(space, cast, size, type, flags) \ (space) = (cast)malloc((u_long)(size), FINDINDEX(size), type, flags) int statesize = 5737; static state_t **table = NULL; int table_init() { MALLOC(table, state_t **, sizeof(state_t *) * statesize, M_TEMP, M_NOWAIT); if (table != NULL) bzero((char *)table, statesize * sizeof(state_t *)); else { return -1; } ...................... } ------------------------------------------- In this case, if statesize is 5737, I can't have the system to allocate memory using MALLOC. if statesize is 127 or 100, system can allocate memory using MALLOC. This program is a part of the loadable kernel module in Tru64UNIX 5.1. Do Tru64UNIX V5.1 have the option that kernel memory to be allocate is limited? If then, how can it be increased?