<?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>HP-UX의 주제 unix domain socket buffer size ?</title>
    <link>https://community.hpe.com/t5/hp-ux/unix-domain-socket-buffer-size/m-p/1164580#M121</link>
    <description>domain buffer size라고 하니 좀 이해하기 힘들군요.&lt;BR /&gt;&lt;BR /&gt;혹 tcp send/received buffer size를 얘기 하시는건 아니신지요.&lt;BR /&gt;&lt;BR /&gt;(setsockopt(), getsockopt())&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SO_SNDBUF   = send buffer high-water mark(tcp_xmit_hiwater_def)&lt;BR /&gt;&lt;BR /&gt;SO_RCVBUF   = receive buffer high-water mark(tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;====================&lt;BR /&gt;&lt;BR /&gt;Every single TCP connection has a special amount of memory &lt;BR /&gt;&lt;BR /&gt;allocated to store the packets. The application reads from &lt;BR /&gt;&lt;BR /&gt;this buffer and TCP writes to it. &lt;BR /&gt;&lt;BR /&gt;If the application does not read fast enough, the buffer gets&lt;BR /&gt;&lt;BR /&gt;filled and TCP is no longer able to write to it. &lt;BR /&gt;&lt;BR /&gt;This tunable changes the amount of buffer space that is &lt;BR /&gt;&lt;BR /&gt;available for default tcp connections (more on this later). &lt;BR /&gt;&lt;BR /&gt;It is meant for local LAN type (ie. ethernet, fddi, token) &lt;BR /&gt;&lt;BR /&gt;connections. &lt;BR /&gt;&lt;BR /&gt;There are two other tunables which are similar but for other&lt;BR /&gt;&lt;BR /&gt;media types.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  tcp_recv_hiwater_lfp - is responsible for the Long, Fat Pipes,&lt;BR /&gt;&lt;BR /&gt;                         this means fast connections like Fiber &lt;BR /&gt;&lt;BR /&gt;                         Channel.&lt;BR /&gt;&lt;BR /&gt;  tcp_recv_hiwater_lnp - regulates the Long, Narrow Pipes, which&lt;BR /&gt;&lt;BR /&gt;                         are slow connections like PPP.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This value is given in bytes.&lt;BR /&gt;&lt;BR /&gt;The minimum is 4096 bytes and no maximum limit is defined.&lt;BR /&gt;&lt;BR /&gt;The default is set to 32K (32768).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why should this be changed?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the application is not fast enough to read all the &lt;BR /&gt;&lt;BR /&gt;information from the buffer, and memory is available, &lt;BR /&gt;&lt;BR /&gt;performance can be improved by increasing this value. &lt;BR /&gt;&lt;BR /&gt;If the machine has depleted most of its available memory to&lt;BR /&gt;&lt;BR /&gt;several tcp connections that are writing into the buffers, &lt;BR /&gt;&lt;BR /&gt;it could be useful to decrease this tunable to limit the memory &lt;BR /&gt;&lt;BR /&gt;usage to a bearable amount.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Usable commands:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Check the current value:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -get /dev/tcp tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Set the window size to 64K (65536):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -set /dev/tcp tcp_recv_hiwater_def 65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nddconf entry example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  TRANSPORT_NAME=tcp&lt;BR /&gt;&lt;BR /&gt;  NDD_NAME=tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;  NDD_VALUE=65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tcp_xmit_hiwater_def&lt;BR /&gt;&lt;BR /&gt;====================&lt;BR /&gt;&lt;BR /&gt;For every TCP connection a buffer is allocated.&lt;BR /&gt;&lt;BR /&gt;The application writes into this buffer and TCP is responsible &lt;BR /&gt;&lt;BR /&gt;for sending it to the distant host. Sometimes it happens that &lt;BR /&gt;&lt;BR /&gt;the other host is not able to receive further data, so TCP can &lt;BR /&gt;&lt;BR /&gt;not send more data out on the interface.&lt;BR /&gt;&lt;BR /&gt;In this case the allocated buffer fills up and at one point we&lt;BR /&gt;&lt;BR /&gt;reach a limit where we must stop the application from sending &lt;BR /&gt;&lt;BR /&gt;more data to the buffer. &lt;BR /&gt;&lt;BR /&gt;This higher limit is called the high-water mark. We prevent the &lt;BR /&gt;&lt;BR /&gt;application from sending any further data until TCP is able to &lt;BR /&gt;&lt;BR /&gt;send enough packets out so that we reach another lower limit the&lt;BR /&gt;&lt;BR /&gt;tcp_xmit_lowater_def which again allows the application to write &lt;BR /&gt;&lt;BR /&gt;data into the buffer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Since different connections could differ in their speed of &lt;BR /&gt;&lt;BR /&gt;filling up this limit, we have two other high-water marks: &lt;BR /&gt;&lt;BR /&gt;tcp_xmit_hiwater_lfp is for fast connection, whereas &lt;BR /&gt;&lt;BR /&gt;tcp_xmit_hiwater_lnp is for slow connections. &lt;BR /&gt;&lt;BR /&gt;Also the low-water mark has two other equivalents for fast &lt;BR /&gt;&lt;BR /&gt;connections it is tcp_xmit_lowater_lfp and for the slow &lt;BR /&gt;&lt;BR /&gt;connections it is tcp_xmit_lowater_lnp.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This value is given in bytes.&lt;BR /&gt;&lt;BR /&gt;The minimum is 4096, there is  no defined maximum.&lt;BR /&gt;&lt;BR /&gt;The default is set to 32K (32768).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why should this be changed?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Normally it is not necessary to change this value, but if the &lt;BR /&gt;&lt;BR /&gt;connections are faster than expected you could increase it or if &lt;BR /&gt;&lt;BR /&gt;they are slower decrease them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Usable commands:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Check the current value:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -get /dev/tcp tcp_xmit_hiwater_def&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Set the high-water mark to 64K:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -set /dev/tcp tcp_xmit_hiwater_def 65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nddconf entry example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   TRANSPORT_NAME=tcp&lt;BR /&gt;&lt;BR /&gt;   NDD_NAME=tcp_xmit_hiwater_def&lt;BR /&gt;&lt;BR /&gt;   NDD_VALUE=65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;happy new year!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 13 Jan 2004 14:00:00 GMT</pubDate>
    <dc:creator>wang gi kim</dc:creator>
    <dc:date>2004-01-13T14:00:00Z</dc:date>
    <item>
      <title>unix domain socket buffer size ?</title>
      <link>https://community.hpe.com/t5/hp-ux/unix-domain-socket-buffer-size/m-p/1164579#M120</link>
      <description>ipc중 domain socket을 사용합니다.&lt;BR /&gt;&lt;BR /&gt;domain socket buffer를 크게 할수있는 방법이 궁금하군요&lt;BR /&gt;&lt;BR /&gt;ndd 중에 혹시 있나요</description>
      <pubDate>Mon, 12 Jan 2004 14:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hp-ux/unix-domain-socket-buffer-size/m-p/1164579#M120</guid>
      <dc:creator>정기식</dc:creator>
      <dc:date>2004-01-12T14:00:00Z</dc:date>
    </item>
    <item>
      <title>unix domain socket buffer size ?</title>
      <link>https://community.hpe.com/t5/hp-ux/unix-domain-socket-buffer-size/m-p/1164580#M121</link>
      <description>domain buffer size라고 하니 좀 이해하기 힘들군요.&lt;BR /&gt;&lt;BR /&gt;혹 tcp send/received buffer size를 얘기 하시는건 아니신지요.&lt;BR /&gt;&lt;BR /&gt;(setsockopt(), getsockopt())&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SO_SNDBUF   = send buffer high-water mark(tcp_xmit_hiwater_def)&lt;BR /&gt;&lt;BR /&gt;SO_RCVBUF   = receive buffer high-water mark(tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;====================&lt;BR /&gt;&lt;BR /&gt;Every single TCP connection has a special amount of memory &lt;BR /&gt;&lt;BR /&gt;allocated to store the packets. The application reads from &lt;BR /&gt;&lt;BR /&gt;this buffer and TCP writes to it. &lt;BR /&gt;&lt;BR /&gt;If the application does not read fast enough, the buffer gets&lt;BR /&gt;&lt;BR /&gt;filled and TCP is no longer able to write to it. &lt;BR /&gt;&lt;BR /&gt;This tunable changes the amount of buffer space that is &lt;BR /&gt;&lt;BR /&gt;available for default tcp connections (more on this later). &lt;BR /&gt;&lt;BR /&gt;It is meant for local LAN type (ie. ethernet, fddi, token) &lt;BR /&gt;&lt;BR /&gt;connections. &lt;BR /&gt;&lt;BR /&gt;There are two other tunables which are similar but for other&lt;BR /&gt;&lt;BR /&gt;media types.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  tcp_recv_hiwater_lfp - is responsible for the Long, Fat Pipes,&lt;BR /&gt;&lt;BR /&gt;                         this means fast connections like Fiber &lt;BR /&gt;&lt;BR /&gt;                         Channel.&lt;BR /&gt;&lt;BR /&gt;  tcp_recv_hiwater_lnp - regulates the Long, Narrow Pipes, which&lt;BR /&gt;&lt;BR /&gt;                         are slow connections like PPP.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This value is given in bytes.&lt;BR /&gt;&lt;BR /&gt;The minimum is 4096 bytes and no maximum limit is defined.&lt;BR /&gt;&lt;BR /&gt;The default is set to 32K (32768).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why should this be changed?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the application is not fast enough to read all the &lt;BR /&gt;&lt;BR /&gt;information from the buffer, and memory is available, &lt;BR /&gt;&lt;BR /&gt;performance can be improved by increasing this value. &lt;BR /&gt;&lt;BR /&gt;If the machine has depleted most of its available memory to&lt;BR /&gt;&lt;BR /&gt;several tcp connections that are writing into the buffers, &lt;BR /&gt;&lt;BR /&gt;it could be useful to decrease this tunable to limit the memory &lt;BR /&gt;&lt;BR /&gt;usage to a bearable amount.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Usable commands:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Check the current value:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -get /dev/tcp tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Set the window size to 64K (65536):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -set /dev/tcp tcp_recv_hiwater_def 65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nddconf entry example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  TRANSPORT_NAME=tcp&lt;BR /&gt;&lt;BR /&gt;  NDD_NAME=tcp_recv_hiwater_def&lt;BR /&gt;&lt;BR /&gt;  NDD_VALUE=65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tcp_xmit_hiwater_def&lt;BR /&gt;&lt;BR /&gt;====================&lt;BR /&gt;&lt;BR /&gt;For every TCP connection a buffer is allocated.&lt;BR /&gt;&lt;BR /&gt;The application writes into this buffer and TCP is responsible &lt;BR /&gt;&lt;BR /&gt;for sending it to the distant host. Sometimes it happens that &lt;BR /&gt;&lt;BR /&gt;the other host is not able to receive further data, so TCP can &lt;BR /&gt;&lt;BR /&gt;not send more data out on the interface.&lt;BR /&gt;&lt;BR /&gt;In this case the allocated buffer fills up and at one point we&lt;BR /&gt;&lt;BR /&gt;reach a limit where we must stop the application from sending &lt;BR /&gt;&lt;BR /&gt;more data to the buffer. &lt;BR /&gt;&lt;BR /&gt;This higher limit is called the high-water mark. We prevent the &lt;BR /&gt;&lt;BR /&gt;application from sending any further data until TCP is able to &lt;BR /&gt;&lt;BR /&gt;send enough packets out so that we reach another lower limit the&lt;BR /&gt;&lt;BR /&gt;tcp_xmit_lowater_def which again allows the application to write &lt;BR /&gt;&lt;BR /&gt;data into the buffer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Since different connections could differ in their speed of &lt;BR /&gt;&lt;BR /&gt;filling up this limit, we have two other high-water marks: &lt;BR /&gt;&lt;BR /&gt;tcp_xmit_hiwater_lfp is for fast connection, whereas &lt;BR /&gt;&lt;BR /&gt;tcp_xmit_hiwater_lnp is for slow connections. &lt;BR /&gt;&lt;BR /&gt;Also the low-water mark has two other equivalents for fast &lt;BR /&gt;&lt;BR /&gt;connections it is tcp_xmit_lowater_lfp and for the slow &lt;BR /&gt;&lt;BR /&gt;connections it is tcp_xmit_lowater_lnp.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This value is given in bytes.&lt;BR /&gt;&lt;BR /&gt;The minimum is 4096, there is  no defined maximum.&lt;BR /&gt;&lt;BR /&gt;The default is set to 32K (32768).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why should this be changed?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Normally it is not necessary to change this value, but if the &lt;BR /&gt;&lt;BR /&gt;connections are faster than expected you could increase it or if &lt;BR /&gt;&lt;BR /&gt;they are slower decrease them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Usable commands:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Check the current value:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -get /dev/tcp tcp_xmit_hiwater_def&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Set the high-water mark to 64K:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    ndd -set /dev/tcp tcp_xmit_hiwater_def 65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nddconf entry example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   TRANSPORT_NAME=tcp&lt;BR /&gt;&lt;BR /&gt;   NDD_NAME=tcp_xmit_hiwater_def&lt;BR /&gt;&lt;BR /&gt;   NDD_VALUE=65536&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;happy new year!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jan 2004 14:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hp-ux/unix-domain-socket-buffer-size/m-p/1164580#M121</guid>
      <dc:creator>wang gi kim</dc:creator>
      <dc:date>2004-01-13T14:00:00Z</dc:date>
    </item>
  </channel>
</rss>

