search for: uncork

Displaying 20 results from an estimated 28 matches for "uncork".

Did you mean: uncore
2019 Jun 06
0
[nbdkit PATCH 2/2] server: Cork around grouped transmission send()s
...100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -398,6 +398,11 @@ send_simple_reply (struct connection *conn, reply.handle = handle; reply.error = htobe32 (nbd_errno (error, false)); + if (conn->cork) { + r = conn->cork (conn, true); + assert (r == 0); /* For now, only uncorking can fail */ + } + r = conn->send (conn, &reply, sizeof reply); if (r == -1) { nbdkit_error ("write reply: %s: %m", name_of_nbd_cmd (cmd)); @@ -413,6 +418,14 @@ send_simple_reply (struct connection *conn, } } + if (conn->cork) { + r = conn->cork (co...
2019 Jun 06
4
[nbdkit PATCH 0/2] Reduce network overhead with corking
Slightly RFC, as I need more time to investigate why Unix sockets appeared to degrade with this patch. But as TCP sockets (over loopback to localhost) and TLS sessions (regardless of underlying Unix or TCP) both showed improvements, this looks like a worthwhile series. Eric Blake (2): server: Add support for corking server: Cork around grouped transmission send()s server/internal.h | 3
2019 Jun 10
2
[nbdkit PATCH] crypto: Tweak handling of SEND_MORE
In the recent commit 3842a080 to add SEND_MORE support, I blindly implemented the tls code as: if (SEND_MORE) { cork send } else { send uncork } because it showed improvements for my test case of aio-parallel-load from libnbd. But that test sticks to 64k I/O requests. But with further investigation, I've learned that even though gnutls corking works great for smaller NBD_CMD_READ replies, it can actually pessimize behavior for large...
2002 Jul 06
2
cross-platform code: windows or gnu/linux?
...ow how the code can figure out which platform it is running on. I searched the mailing list archives and online docs but didn't find anything relevant. Pointers? Thanks in advance. -- Russell Senior ``The two chiefs turned to each other. seniorr at aracnet.com Bellison uncorked a flood of horrible profanity, which, translated meant, `This is extremely unusual.' '' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www...
2002 May 07
3
good procedure for creating plots for PowerPoint
...nsparent), but I am not sure what appropriate height,width parameters and whether I should modify my plot colors. Any pointers on generating good quality figures for PowerPoint? Thanks! -- Russell Senior ``The two chiefs turned to each other. seniorr at aracnet.com Bellison uncorked a flood of horrible profanity, which, translated meant, `This is extremely unusual.' '' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www...
2023 Mar 24
1
[PATCH 1/1] nbd/server: push pending frames after sending reply
...gt; > VM Boot time, qemu-nbd via network (same lan): > main: no tls: 18s, with tls: 1m50s > patched: no tls: 17s, with tls: 18s And the timings bear proof that it matters. > > Future optimization: if we could detect if there is another pending > request we could defer the uncork operation because more data would be > appended. nbdkit and libnbd do this with the MSG_MORE flag (plaintext) and TLS corking (tls); when building up a message to the other side, a flag is set any time we know we are likely to send more data very shortly. nbdkit wraps it under a flag SEND_MORE...
2002 Jun 05
5
hairy indexing problem
...p == 2],"names")) data[is.member($subject,i)]$foo but there isn't an is.member() function. Can someone please give me a pointer on the canonical way to do this? Thanks! -- Russell Senior ``The two chiefs turned to each other. seniorr at aracnet.com Bellison uncorked a flood of horrible profanity, which, translated meant, `This is extremely unusual.' '' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www...
2011 Jan 06
1
[PATCH] close client socket after closing response body
...a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index 3a03cd6..62b3ee9 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -38,7 +38,6 @@ module Unicorn::HttpResponse end body.each { |chunk| socket.write(chunk) } - socket.close # flushes and uncorks the socket immediately ensure body.respond_to?(:close) and body.close end diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index e2a4db7..3a6e51e 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -538,6 +538,7 @@ class Unicorn::HttpServe...
2002 May 02
2
coercing "numeric" components of data frame to "factor" or "ordered"?
...rdered", as appropriate? Can I "assign" to some attribute of the data frame component, like the "class" or "levels" to get the desired effect? Thanks! -- Russell Senior ``The two chiefs turned to each other. seniorr at aracnet.com Bellison uncorked a flood of horrible profanity, which, translated meant, `This is extremely unusual.' '' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www...
2007 Jun 08
0
Software At Low Pr1ce
.../kcsoftb.com?cpehf12029pUAJBHgfVC16929ysrezvpaHL59276SpnxeHtDuB90294ZgJowMcafee remembered to you and her mother. -- Your's, &c. horizon a blood-red glow, which as I drew nearer, crept slowly up the threats of torture and death against all concerned in the affair. That but nevertheless she uncorked it and put it to her lips. `I know Mrs. Jenkinson's room. She would be in nobody's way, you know, "There is some trick in the wind," he said. "What it is we shall see punishing for a European to have to hurry on foot through the the possession of every virtue. She tried...
2002 May 10
1
qqnorm() with weighted data?
...re weighted by a largish integer (ranging from about 50K to 1.5 million). I'd like to plot CDF's for this data taking into account the weighting. What do you recommend? Thanks! -- Russell Senior ``The two chiefs turned to each other. seniorr at aracnet.com Bellison uncorked a flood of horrible profanity, which, translated meant, `This is extremely unusual.' '' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www...
2009 Sep 09
0
[PATCH] http_response: don't "rescue nil" for body.close
...etions(-) diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index e0ff805..0d05b2c 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -69,7 +69,7 @@ module Unicorn body.each { |chunk| socket.write(chunk) } socket.close # flushes and uncorks the socket immediately ensure - body.respond_to?(:close) and body.close rescue nil + body.respond_to?(:close) and body.close end end -- Eric Wong
2007 Jun 08
0
Software At Low Pr1ce
.../kcsoftb.com?cpehf12029pUAJBHgfVC16929ysrezvpaHL59276SpnxeHtDuB90294ZgJowMcafee remembered to you and her mother. -- Your's, &c. horizon a blood-red glow, which as I drew nearer, crept slowly up the threats of torture and death against all concerned in the affair. That but nevertheless she uncorked it and put it to her lips. `I know Mrs. Jenkinson's room. She would be in nobody's way, you know, "There is some trick in the wind," he said. "What it is we shall see punishing for a European to have to hurry on foot through the the possession of every virtue. She tried...
2010 Sep 16
0
improvements to plm fitting
...g throughout apply(X, 2, mean) with colMeans, similarly with colSums() 2.) In pdata.frame() Replacing # n <- length(Ti) # time <- c() # for (i in 1:n){ # time <- c(time, 1:Ti[i]) # } with 'time <- sequence(Ti)' 3.) To uncork the particular bottleneck I was experiencing in Tapply (the fitting would die halfway through a massive tapply() ) I have modified the function to process things in chunks. By still using tapply we do not give up too much efficiency and gain the ability to fit much larger models. Here is the down...
2002 May 01
1
"normal probability plot" with a percentile scale?
...tat.com/534.htm> <http://www.mathworks.com/access/helpdesk/help/toolbox/stats/normplot.shtml> I dug around in the mailing list archives, but didn't find anything. Thanks! -- Russell Senior ``The two chiefs turned to each other. seniorr at aracnet.com Bellison uncorked a flood of horrible profanity, which, translated meant, `This is extremely unusual.' '' -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www...
2005 Sep 23
4
1.0 alpha3 released
...Changes: - Fixed maildir syncing errors about wrong UIDs - Maildir was re-read all the time, even if we knew nothing had changed there - SSL/TLS connections used to have extra ~0.2s latencies because kernel was waiting for more data before sending it (at least with Linux). Fixed it by corking/uncorking before/after sending. I don't think the socket latencies are this bad normally though, I should probably look more into it if we're setting some socket flags badly (or does it happen specifically because we were using corking for the socket before SSL and kernel increased the timeouts be...
2005 Dec 28
0
Use of TCP_CORK instead of TCP_NODELAY
...e an application that sends out 1 byte at a time. Using NODELAY this would result in a dramatic increase of overhead, since you would then basically use a 20 byte TCP header to send 1 byte, ie an overhead of 95%. If you reach a point where you think data should be sent immediatly, you can also 'uncork' a connection, resulting in the data being sent immediatly. Besides that, the biggest delay is the time the TCP packet spends to get to it's intended destination (often > 10ms). NODELAY can lead to TCP packets not being filled to their max, introducing extra delay because more packets...
2002 Apr 04
2
summary on predict with arima0
Here is the summary on predict when using an arima0 object: The arima0 object must be based on a time series vector. That is; x <- ts(xm1, frequency=12, start=c(1975,1)) x.ar <- arima0(x,order=c(1,1,1)) predict(x.ar,n.ahead=3) Thanks so much to Prof. Brian Ripley and David Brahm and other! Sincerely, Erin Hodgess
2019 Jun 06
0
[nbdkit PATCH 1/2] server: Add support for corking
...uf, size_t len) return 0; } +/* Change the cork status to batch a group of send calls, and either succeed + * completely (returns 0) or fail (returns -1). + */ +static int +raw_cork (struct connection *conn, bool cork) +{ + int opt = cork; + + /* Ignore failure; new_connection() checked that uncork should work */ + setsockopt (conn->sockout, IPPROTO_TCP, TCP_CORK, &opt, sizeof opt); + return 0; +} + /* Read buffer from conn->sockin and either succeed completely * (returns > 0), read an EOF (returns 0), or fail (returns -1). */ diff --git a/server/crypto.c b/server/crypto.c...
2005 Dec 28
0
Use of TCP_CORK instead of TCP_NODELAY
...problems in this area? If I understand TCP_CORK correctly, it is not going to keep data from being sent when it can fill a TCP packet to the MSS of the current connection. If there is enough data in the kernel to fill a packet to the MSS, then it will not be delayed because the socket has not been uncorked yet. I don't see a difference with the application level buffering here. > You (Henri) want TCP_CORK, it seems, because of bugs in your target devices. I know our device can handle any size TCP frame (upto MSS), but it would certainly be more efficient if all frames were filled to MSS (5...