summaryrefslogtreecommitdiffstats
path: root/sbin/ggate/shared/ggate.c
Commit message (Collapse)AuthorAgeFilesLines
* Style nits.pjd2010-02-181-4/+4
|
* Implement a work-around for poor ggate write performance.pjd2007-04-061-1/+11
|
* For consistency use 'unsigned' instead of 'u_int'.pjd2006-12-181-2/+2
|
* Fix ggated for platforms with 64bit size_t. The DIOCGSECTORSIZE ioctlpjd2006-12-151-2/+2
| | | | | | | | returns u_int. Reported by: Javier Martín Rueda <jmrueda@diatel.upm.es> PR: amd64/91799 MFC after: 3 days
* - Handle timeouts from recv(2) properly.pjd2006-10-301-2/+6
| | | | | | | | | - Increase timeout to 8 seconds (should be made configurable). Reported by: Ulrich Spoerlein <uspoerlein@gmail.com> Reported by: Christian Laursen <xi@borderworlds.dk> PR: kern/104829 MFC after: 1 week
* Reimplement ggatec/ggated applications.pjd2005-07-081-11/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change communication protocol to be much more resistant on network problems and to allow for much better performance. Better performance is achieved by creating two connections between ggatec and ggated one for sending the data and one for receiving it. Every connection is handled by separeted thread, so there is no more synchronous data flow (send and wait for response), now one threads sends all requests and another receives the data. Use two threads in ggatec(8): - sendtd, which takes I/O requests from the kernel and sends them to the ggated daemon on the other end; - recvtd, which waits for ggated responses and forwards them to the kernel. Use three threads in ggated(8): - recvtd, which waits for I/O requests and puts them onto incoming queue; - disktd, which takes requests from the incoming queue, does disk operations and puts finished requests onto outgoing queue; - sendtd, which takes finished requests from the outgoing queue and sends responses back to ggatec. Because there were major changes in communication protocol, there is no backward compatibility, from now on, both client and server has to run on 5.x or 6.x (or at least ggated should be from the same FreeBSD version on which ggatec is running). For Gbit networks some buffers need to be increased. I use those settings: kern.ipc.maxsockbuf=16777216 net.inet.tcp.sendspace=8388608 net.inet.tcp.recvspace=8388608 and I use '-S 4194304 -R 4194304' options for both, ggatec and ggated. Approved by: re (scottl)
* Fix/clean up return values checking.pjd2004-09-081-8/+8
|
* Print mediasize in human readable form as well.pjd2004-06-211-1/+6
|
* Fix compiling on 64-bit architectures.pjd2004-05-021-1/+1
|
* Stuff shared between ggate utilities.pjd2004-04-301-0/+330
OpenPOWER on IntegriCloud