Samba and Out Of Connection Structures on Solaris (again)

David Collier-Brown davecb at
Wed Jan 9 10:08:05 GMT 2002

on the general samba list, Jasper Jans wrote:
|plimit -mk:
| 8592:   /home/sw/sparc-SunOS-5.8-pro64/samba-2.2.2/sbin/smbd -D
|   resource              current         maximum
|  time(seconds)         unlimited       unlimited
|  file(kbytes)          unlimited       unlimited
|  data(kbytes)          unlimited       unlimited
|  stack(kbytes)         8192            unlimited
|  coredump(kbytes)      unlimited       unlimited
|  nofiles(descriptors)  51200           52224
|  vmemory(kbytes)       unlimited       unlimited
| pfiles:
| 8592:   /home/sw/sparc-SunOS-5.8-pro64/samba-2.2.2/sbin/smbd -D
|  Current rlimit: 51200 file descriptors

I then wrote: 
>         Ok, it's more likely to be a Samba problem
>         than Slolaris...  Off to the Samba-Technical
>         list we go.

He's getting 
[2002/01/09 12:37:31, 1] smbd/conn.c:(104)
  ERROR! Out of connection structures
[2002/01/09 12:37:31, 0] smbd/service.c:(325)
  Couldn't find free connection.

This is on Solaris 8, 64-bit, with the rlim_fd_cur=2048 and
rlim_fd_max=8192 and the fd's per process to 51200 via plimit,
which has set the system limits properly.

We use getrlimit(RLIMIT_NOFILE,...), which seems to return
    rlim_cur = 256U
    rlim_max = 1024U
with the default rlimit: 10010 file descriptors

Suggestion to Mr Jans: print the values with DEBUG
found in 
  File           Function        Line
2 util.c         set_maxfiles    1516 if(getrlimit(RLIMIT_NOFILE,

This may be a Solaris issue, or a bug in the logic
that sizes samba's file bitmap. If it's the former,
I can officially report it.


David Collier-Brown,           | Always do right. This will gratify 
Americas Customer Engineering, | some people and astonish the rest.
SunPS Integration Services.    |                      -- Mark Twain
(905) 415-2849                 | davecb at

More information about the samba-technical mailing list