From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8571 invoked from network); 5 Aug 1998 02:21:15 -0000 Received: from winnie.fit.edu (163.118.5.1) by mail2.redhat.com with SMTP; 5 Aug 1998 02:21:15 -0000 Received: from ee.fit.edu (yacht.ee.fit.edu [163.118.30.1]) by winnie.fit.edu (8.8.7/8.8.7) with SMTP id WAA03946 for ; Tue, 4 Aug 1998 22:15:49 -0400 (EDT) Received: from localhost by ee.fit.edu (SMI-8.6/SMI-SVR4) id WAA00964; Tue, 4 Aug 1998 22:19:32 -0400 Date: Tue, 4 Aug 1998 22:19:32 -0400 (EDT) From: Christopher Curtis To: axp-list@redhat.com Subject: SHMMAX (was Re: using cdrecord) In-Reply-To: <35C7BD85.41C67EA6@ariolimax.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 4 Aug 1998, David G. Koontz wrote: > I don't know why its so small on an alpha. (28 Kbytes short of > 4 Meg). It needs to be DEFAULT_FIFO_SIZE + 1 Page (4M Bytes + 8K bytes > or 420000 Hex). Can anyone explain the purpose of the limit at all? Why is it necessary to have an upper bound to the amount of memory that can be allocated? I don't have a copy of (g)libc source hanging around to look at, but the kernel makes sparce use of this constant. The only thing that looks relevant is in the sys_shmctl() function (ipc/shm.c) [as an aside, I don't do any kernel-level development, but this looks like it would be suspiciously easy to setup with a /proc interface] and the only thing it uses this value for is a call to verify_area() and to memcpy_tofs(). Is there any reason this would cause a performance hit? I almost looks like when any shared memory is requested the maximum is allocated but even if that were the case, there would only be a penalty when the memory is first allocated. I just don't get it. > I don't recognize your error messages, but increasing SHMMAX to > 0x420000 was all that was required on my LX164/2.0.34. -EINVAL is returned by the kernel when the requested amount of memory is less than zero or > SHMMAX. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/