"shared mem size" parameter and smbstatus

Andrew Tridgell tridge at samba.org
Fri Jul 16 04:39:54 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

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

Cheers, Tridge

More information about the samba mailing list