<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Samba error: no buffer space available in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581264#M229947</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have an HP 9000 rp3410, HP-UX 11.11.&lt;BR /&gt;&lt;BR /&gt;Recently I am finding this error in the samba log file:&lt;BR /&gt;[2005/07/12 16:36:51, 0] smbd/server.c:open_sockets_smbd(382)&lt;BR /&gt;  open_sockets_smbd: accept: No buffer space available&lt;BR /&gt;&lt;BR /&gt;When this error comes up, the file sharing through samba begins to be very slow.&lt;BR /&gt;&lt;BR /&gt;In the forum there is indication about a kernel parameter to be increased, i.e. tcp_conn_max_size, but I haven't found it in the configurable parameters of the kernel.&lt;BR /&gt;Attached is the output of the "kmtune" command.&lt;BR /&gt;&lt;BR /&gt;Can anybody please help me ?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Enrico&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Jul 2005 02:09:09 GMT</pubDate>
    <dc:creator>enrico.nic</dc:creator>
    <dc:date>2005-07-13T02:09:09Z</dc:date>
    <item>
      <title>Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581264#M229947</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have an HP 9000 rp3410, HP-UX 11.11.&lt;BR /&gt;&lt;BR /&gt;Recently I am finding this error in the samba log file:&lt;BR /&gt;[2005/07/12 16:36:51, 0] smbd/server.c:open_sockets_smbd(382)&lt;BR /&gt;  open_sockets_smbd: accept: No buffer space available&lt;BR /&gt;&lt;BR /&gt;When this error comes up, the file sharing through samba begins to be very slow.&lt;BR /&gt;&lt;BR /&gt;In the forum there is indication about a kernel parameter to be increased, i.e. tcp_conn_max_size, but I haven't found it in the configurable parameters of the kernel.&lt;BR /&gt;Attached is the output of the "kmtune" command.&lt;BR /&gt;&lt;BR /&gt;Can anybody please help me ?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Enrico&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 02:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581264#M229947</guid>
      <dc:creator>enrico.nic</dc:creator>
      <dc:date>2005-07-13T02:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581265#M229948</link>
      <description>Enrico,&lt;BR /&gt;take a look for the "tcp_conn_request_max" tunable parameter and see if it is reasonable high ( 4096 for example )&lt;BR /&gt;You cannot find it among the kernel tunable parameters because it is a network tunable parameter.&lt;BR /&gt;&lt;BR /&gt;This is the command to get info about it:&lt;BR /&gt;ndd -get /dev/tcp tcp_conn_request_max&lt;BR /&gt;&lt;BR /&gt;This is the command to increase the value:&lt;BR /&gt;ndd -set /dev/tcp tcp_conn_request_max 4096&lt;BR /&gt;&lt;BR /&gt;Then take a look if you have the following patches installed:&lt;BR /&gt;&lt;BR /&gt;PHNE_21767&lt;BR /&gt;PHNE_21217&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this can help,&lt;BR /&gt;Regards, Alessandro&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 02:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581265#M229948</guid>
      <dc:creator>Alessandro Pilati</dc:creator>
      <dc:date>2005-07-13T02:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581266#M229949</link>
      <description>You may be hitting nfile (global number of files) limit. Do you see any errors in syslog.log about file table overflow or being full?&lt;BR /&gt;&lt;BR /&gt;You can monitor your file table usage with glance or sar. If you use sar column to look at is file-sz. There are two numbers (as in x/y): x is current usage, y should correspond to nfile.&lt;BR /&gt;&lt;BR /&gt;$ sar -v 5 5</description>
      <pubDate>Wed, 13 Jul 2005 02:48:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581266#M229949</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-07-13T02:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581267#M229950</link>
      <description>Hi Alessandro&lt;BR /&gt;&lt;BR /&gt;The parameter is already set to 4096&lt;BR /&gt;&lt;BR /&gt;# ndd -get /dev/tcp tcp_conn_request_max&lt;BR /&gt;4096&lt;BR /&gt;&lt;BR /&gt;And the two indicated patches refer to HP-UX 11.0 - anyway, these are patches related to ARPA transport (the first) and LAN (the second): for both of these "products", the latest patches for HP-UX 11.11 have already been applied.&lt;BR /&gt;&lt;BR /&gt;I am trying the second option (kernel param)&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 03:02:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581267#M229950</guid>
      <dc:creator>enrico.nic</dc:creator>
      <dc:date>2005-07-13T03:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581268#M229951</link>
      <description>nfile in the kernel configurable parameters seems to be right (4096): the suggested sar command says that around 700 files are open of the 4107 available - and no error like "file table is full" is present in syslog.log&lt;BR /&gt;&lt;BR /&gt;Any other suggestion is welcome&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Enrico&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 05:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581268#M229951</guid>
      <dc:creator>enrico.nic</dc:creator>
      <dc:date>2005-07-13T05:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581269#M229952</link>
      <description>Since someone already mentioned that tcp_conn_request_max is an ndd setting, I'll simply add that the _actual_ depth of the listen queue will be the minimium of that and what Samba passes-in on its listen() call(s).&lt;BR /&gt;&lt;BR /&gt;Further, I suspect that tcp_conn_request_max is not related to the ENOBUFS from accept. 99 times out of 10 and ENOBUFS on accept means that by the time the application has gotten around to calling accept() the remote client has given-up on the connection.&lt;BR /&gt;&lt;BR /&gt;Tuning tcp_conn_request_max and the listen() parameter _is_ indicated when netstat -p tcp shows connection requests dropped due to full queue.&lt;BR /&gt;&lt;BR /&gt;If nfile were too small, the error from accept would be ENFILE.  If maxfiles/maxfiles_lim were being hit it would be EMFILE.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2005 10:33:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581269#M229952</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-07-14T10:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581270#M229953</link>
      <description>From what I can see by looking at samba source code the size of listen queue is hardcoded to 50 in one of the header files. So it looks like tuning tcp_conn_request_max won't help you.&lt;BR /&gt;&lt;BR /&gt;The suggestion about nfile was taken from HP's knowledge base article (document ID 8606401569; SYSLOG Errors: open_sockets_smbd: accept: No buffer space available) which hints that hitting nfile limit might be one of the possible causes.&lt;BR /&gt;&lt;BR /&gt;I suggest that you check performance of your server (especially cpu and memory utilisation) with 'glance' when the problem occurs. If your server is running out of resources, this situation is likely to occur.&lt;BR /&gt;&lt;BR /&gt;Also it's a good idea to check ARPA patch you have installed and update to the latest one.&lt;BR /&gt;&lt;BR /&gt;Finally, I suggest that you tune your kernel parameter dbc_max_pct from 50 to a value from 5 to 10. This parameter determines how much memory will be used for buffer cache and default of 50 (percent) is overkill for most situations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2005 18:34:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581270#M229953</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-07-14T18:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581271#M229954</link>
      <description>I hace the same problem with my Informix Database:&lt;BR /&gt;&lt;BR /&gt;listener-thread: err = -25573: Network driver cannot accept a connecti&lt;BR /&gt;on on the port. System error = 233.  &lt;BR /&gt;&lt;BR /&gt;And oserr 233 is about ENOBUFS: "No buffer space available". &lt;BR /&gt;Did you resolve your problem? How did you do?&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 12:28:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581271#M229954</guid>
      <dc:creator>Duda_1</dc:creator>
      <dc:date>2005-08-02T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581272#M229955</link>
      <description>The error is not solved (yet ?).&lt;BR /&gt;Furthermore, there is a new error after changing some "socket options" in the samba configuration file:&lt;BR /&gt;Aug  1 12:31:40 gissi smbd[17168]:   Failed to set socket option SO_KEEPALIVE (E&lt;BR /&gt;rror Invalid argument)&lt;BR /&gt;Aug  1 12:31:40 gissi smbd[17168]:   Failed to set socket option IPTOS_LOWDELAY&lt;BR /&gt;(Error Invalid argument)&lt;BR /&gt;Aug  1 12:31:40 gissi smbd[17168]:   Failed to set socket option TCP_NODELAY (Er&lt;BR /&gt;ror Invalid argument)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Aug 2005 01:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581272#M229955</guid>
      <dc:creator>enrico.nic</dc:creator>
      <dc:date>2005-08-03T01:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581273#M229956</link>
      <description>Ciao Enrico,&lt;BR /&gt;&lt;BR /&gt;that message into syslog.log &lt;BR /&gt;&lt;BR /&gt;[2005/07/12 16:36:51, 0] smbd/server.c:open_sockets_smbd(382)&lt;BR /&gt;open_sockets_smbd: accept: No buffer space available]&lt;BR /&gt;&lt;BR /&gt;means there are problems about system resources on your system. Usually the reason is a nfile kernel parameter too small.&lt;BR /&gt;As Ermin posted it can be checked by sar but you should verify when you obtain the error how many users are connected on CIFS/Samba folders.&lt;BR /&gt;A thought: did this message happen suddenly? Or do you know that in last period more users have permissions to use CIFS/Samba folders?&lt;BR /&gt;&lt;BR /&gt;Try to increase nfile parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;About new message with socket options the message that you obtain with&lt;BR /&gt;&lt;BR /&gt;Invalid argument&lt;BR /&gt;&lt;BR /&gt;seems to be clear that the format of entries in smb.conf is not correct. I suggest to comment them and increase nfile.&lt;BR /&gt;&lt;BR /&gt;That message surely refers to a system resource problem.&lt;BR /&gt;&lt;BR /&gt;Hope this helps you.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Fabio</description>
      <pubDate>Wed, 03 Aug 2005 04:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581273#M229956</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2005-08-03T04:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581274#M229957</link>
      <description>Enrico,&lt;BR /&gt;&lt;BR /&gt;Ermin has pointed, in the last sentence, to the first parm to look at...&lt;BR /&gt;reduce dbc_max_% immediately.  Depending on memory on your server set this value DOWN.  You need about 300-400Mb for smaller memory boxes and 700-800Mb for larger memory.  So set this % so it would calculate down to the correct amount of memory to give to the system.  Probably anything from 20 down to 5.&lt;BR /&gt;But reduce this immediate !&lt;BR /&gt;&lt;BR /&gt;Next, yes increase your nfile (set at 4097) to maybe 10,000 and observe this using sar -v for open file usage.&lt;BR /&gt;Then, maybe decrease (yes...decrease) the ninode parm from the strange number you have to 2048.  You might be able to go even lower like 1024.  Again use that sar -v command to monitor this.  This parm creates a table that assigns the ninodes-and these values are re-usable, so the entries keep recycling.&lt;BR /&gt;&lt;BR /&gt;Your value for 1Gb on shmmax may be right, or you may have enough resources to extend this as well.&lt;BR /&gt;Take a look at your semmaphore and message queue settings.  Since you don't mention what your running, can't comment on these too much.  But if your appl uses semmaphores, bet your running short on them with these settings !  Again use the sar command sar -mS to give you some heads up on this..&lt;BR /&gt;&lt;BR /&gt;Hope this helps get you started,&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Aug 2005 06:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581274#M229957</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-08-03T06:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Samba error: no buffer space available</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581275#M229958</link>
      <description>I'd like to know if the issue has been resolved on your side. The reason I'm asking is we experienced the same problem and hope to share your experiences.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;-Ying</description>
      <pubDate>Thu, 01 Dec 2005 19:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-error-no-buffer-space-available/m-p/3581275#M229958</guid>
      <dc:creator>Ying Li_1</dc:creator>
      <dc:date>2005-12-01T19:23:27Z</dc:date>
    </item>
  </channel>
</rss>

