I am trying to use the "shared mem size" parameter in Samba 2.0.4b, but the size reported by smbstatus does not match the value I am using. Without the parameter, the default is 1MB, and the size reported by smbstatus is indeed 1048576. However, when I set the value of "shared mem size" to 5242880 (5MB), smbstatus says 879608. Is smbstatus not reporting the actual size, or is this accurate and the shared memory size has actually been reduced instead of increased? Thanks. -- --------------------------------------------------------------------- Jay D. Anderson John Deere Davenport Works Jay@Deere.com P.O. Box 4198 Phone: 319.388.4268 Fax: 319.388.4159 Davenport, Iowa 52808 http://www.dw.deere.com/~hz01930 http://web.infoave.net/~jaya
> Without the parameter, the default is 1MB, and the size reported by > smbstatus is indeed 1048576. However, when I set the value of "shared > mem size" to 5242880 (5MB), smbstatus says 879608. Is smbstatus not > reporting the actual size, or is this accurate and the shared memory > size has actually been reduced instead of increased?When smbd can't get the size it asks for it tries smaller sizes, reducing by a factor or 0.8 each time until it finds a size the OS accepts. so it looks like your OS is refusing large IPC shared memory areas. If this is Linux then look at /proc/sys/kernel/shmmax. For other OSes you will need to read the man pages as I don't know where the limits are stored. Cheers, Tridge
> > Without the parameter, the default is 1MB, and the size reported by > > smbstatus is indeed 1048576. However, when I set the value of "shared > > mem size" to 5242880 (5MB), smbstatus says 879608. Is smbstatus not > > reporting the actual size, or is this accurate and the shared memory > > size has actually been reduced instead of increased? > > When smbd can't get the size it asks for it tries smaller sizes, > reducing by a factor or 0.8 each time until it finds a size the OS > accepts. > > so it looks like your OS is refusing large IPC shared memory areas. If > this is Linux then look at /proc/sys/kernel/shmmax. For other OSes you > will need to read the man pages as I don't know where the limits are > stored. > > Cheers, TridgeAnother view of this problem from a Debian/Linux box:- smb.conf:- shared mem size = 5242880 testparm:- shared mem size = 5242880 /proc/sys/kernel/shmmax:- 33554432 smbstatus:- Samba version 2.0.4b Service uid gid pid machine ---------------------------------------------- WARNING smb_shm_open : filesize (1048576) != expected size (5242880), using filesize This occurs on all three of my Debian/Linux/Samba 2.0.4b boxes. Cheers, Lindsay =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Lindsay Allen <allen@cleo.murdoch.edu.au> Perth, Western Australia voice +61 8 9316 2486 32.0125S 115.8445E Debian Linux =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
On 18 Jul 99, Lindsay Allen <allen@cleo.murdoch.edu.au> had questions about "shared mem size" parameter and smbstatus: [snip]> Another view of this problem from a Debian/Linux box:- > > smb.conf:- > shared mem size = 5242880 > > testparm:- > shared mem size = 5242880 > > /proc/sys/kernel/shmmax:- 33554432 > > smbstatus:- > Samba version 2.0.4b > Service uid gid pid machine > ---------------------------------------------- > > WARNING smb_shm_open : filesize (1048576) != expected size (5242880), > using filesize > > This occurs on all three of my Debian/Linux/Samba 2.0.4b boxes.Why is the value samba sees: filesize (1048576) != expected size (5242880) different from the value in proc: /proc/sys/kernel/shmmax:- 33554432 I'm no expert, but this seems goofy to me. Guru-dudes (and dudettes) feel free to chime in). Steve ************************************************************* Steve Arnold http://www.rain.org/~sarnold "A mime is a terrible thing to waste..." Mel Brooks