Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!sdd.hp.com!wuarchive!udel!rochester!kodak!ispd-newsserver!jeffv From: jeffv@bisco.kodak.com (Jeff Van Epps) Newsgroups: comp.windows.x Subject: Re: More than 4096 bytes per write to an Xserver on a Sun? Summary: Yes, setsockopt(2) Message-ID: <1991Feb18.184330.26090@ssd.kodak.com> Date: 18 Feb 91 18:43:30 GMT Sender: news@ssd.kodak.com Reply-To: jeffv@bisco.kodak.com (Jeff Van Epps) Followup-To: comp.windows.x Organization: Eastman Kodak Lines: 29 In article <1991Feb13.012043.1592@cimage.com> paulh@cimage.com (Paul Haas) writes: > On a Sun, Sparcstation 1+, running Sun OS 4.1.1 is it possible to > increase the size of the IPC buffer? The answer to this specific question is "yes". I don't know whether or not it will help you with X communications though. I work on exactly the same setup, and it was just last Friday that I found the answer in Stevens' _UNIX Network Programming_ (an excellent book!). It works on my setup and does increase performance somewhere around 10%. SendBufferSize = 32768; /* size in bytes */ if ( setsockopt( fd, SOL_SOCKET, SO_SNDBUF, (char *) &SendBufferSize, sizeof( SendBufferSize ) ) < 0 ) { error... } According to the book, the maximum buffer size is 52,000. I haven't tried more than 50,000. You can also change the size of the receive buffer. From the description of your application, I would guess that you would need a more effective solution than this. -- If the From: line says nobody@kodak.com, don't believe it. Jeff Van Epps jeffv@bisco.kodak.com rochester!kodak!bisco!jeffv