Q: Solaris local socket buffers

Q: Solaris local socket buffers

Post by Casper H.S. Dik - Network Security Engine » Tue, 28 Oct 1997 04:00:00



[[ Reply by email or post, don't do both ]]


>  Solaris local sockets do not seem to pay attention to SO_RCVBUF and
>SO_SNDBUF. I'm trying to set those buffers to a very small size (4 or
>8 bytes) and use them as control sockets. Once I send my message to
>the other process I do not want to return from select, approved for a
>write, until the other process performs some action, and then pulls
>the message from the socket buffer.

Buffer sizes are roudned up to MTU size (which for loopback is 8K)

Quote:>  So, anyone have any idea how I can make Solaris local sockets buffer
>how much data I want it to buffer? or anyone know where I should be
>asking?

No way; use a different mechanism.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

Q: Solaris local socket buffers

Post by Libo » Tue, 28 Oct 1997 04:00:00


  Solaris local sockets do not seem to pay attention to SO_RCVBUF and
SO_SNDBUF. I'm trying to set those buffers to a very small size (4 or
8 bytes) and use them as control sockets. Once I send my message to
the other process I do not want to return from select, approved for a
write, until the other process performs some action, and then pulls
the message from the socket buffer.

  This works fine on SunOS, the local socket will not buffer more then
I want it to, and I can use a 4 byte message to fill up the socket, so
no more writing can be performed. On solaris this dosn't work, the
socket will buffer a lot more then I tell it to.

  So, anyone have any idea how I can make Solaris local sockets buffer
how much data I want it to buffer? or anyone know where I should be
asking?

Thank you very much, this is really driving me nuts.

-Libor

 
 
 

1. Mechanism of TCP/IP Socket Buffer Allocation under Solaris 2.5.x

This is a multi-part message in MIME format.
--------------516A5775A5560C99A0CB92C9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello , Sir :

        Could you help me to find the documentation about :
" Mechanism of TCP/IP Socket Buffer Allocation under Solaris 2.5.x "
    Because I find some phenomenon about TCP/IP Socket Buffer Allocation

under Solaris 2.5.x .
1. Under Solaris 2.5.x , the Sender Side can sender the amount of data
less
or equal to the window size of the Receiver Size before the Sender
receive
the ACK from the Receiver .
2. The Socket Buffer of Receiver Size will at least 4MSS and less than
about 64xxx .
3. No matter what value I use setsocketopt to set the  sender buffer
size ,
it can send the data larger than buffer size .

It's so amazing and confusing to me , could you help me to find the
answer ?
I need the answer to help my thesis of master degree .

Thanks for your regarding ,
Jamex Chen

--------------516A5775A5560C99A0CB92C9
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jamex Chen
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Jamex Chen
n:              Chen;Jamex

x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
end:            vcard

--------------516A5775A5560C99A0CB92C9--

2. I NEED D SET THat has gcc-2.5.8 on it!

3. Unix Domain Sockets and buffer sizes under Solaris 2.6

4. help /etc/fstab !!!!

5. sockets v/s Message Qs

6. defense "write command"

7. Solaris 2.5/Internet Server 1.0 Qs

8. problem with PATH and jdk install

9. Xvfb virtual frame-buffer trouble with LOCAL-ZONES in sol10x86?

10. Buffer overflows: why mix "return addresses" and local variables

11. X-term "clipboard" buffer, local or host?

12. Setting the buffer for a Socket.

13. memory used for socket buffers