title: What's the practical limit on the size of single packet transmitted over domain socket?
body: <p>Let us assume that there is a Unix domain socket created for a typical server-client program. The client sends a 10GB buffer over the socket and it is consumed by the server in the meanwhile.</p>
  
  <p>Does OS (Linux/BSD) split the 10GB buffer into many packets and send/consume them, or are they sent at once?</p>
  
  <p>If it is not possible to send 10GB buffer of domain socket in one go, then what is the practical size limit of a single packet?</p>
  
  <p>Constraints:</p>
  
  <ul>
  <li>The program will run on both Linux 2.6.32+ and FreeBSD 9+</li>
  <li>Size of the buffer to be sent ranges from 3 bytes to 10GB maximum.</li>
  </ul>