"shared mem size" parameter and smbstatus

Lindsay Allen allen at cleo.murdoch.edu.au
Sat Jul 17 02:47:46 GMT 1999



> > 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

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.


Cheers,
Lindsay
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen   <allen at cleo.murdoch.edu.au>  Perth, Western Australia
voice +61 8 9316 2486    32.0125S 115.8445E              Debian Linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




More information about the samba mailing list