diff options
author | dormando <dormando@rydia.net> | 2023-03-13 21:47:54 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-26 16:48:37 -0700 |
commit | 595758ad02ac3ab57ae981c9d736563812861eaf (patch) | |
tree | aec2940c0794667c1c1dfb3c17ad3f6074f2c2dd /proxy_lua.c | |
parent | 6d767eb78ae256375cfe23a0a91ea6e12e046d6b (diff) | |
download | memcached-595758ad02ac3ab57ae981c9d736563812861eaf.tar.gz |
proxy: rip out io_uring code
with the event handler rewrite the IO thread scales much better (up to
8-12 worker threads), leaving the io_uring code in the dust.
realistically io_uring won't be able to beat the event code if you're
using kernels older than 6.2, which is brand new. Instead of carrying
all this code around and having people randomly try it to get more
performance, I want to rip it out of the way and add it back in later
when it makes sense.
I am using mcshredder as a platform to learn and keep up to date with
io_uring, and will port over its usage pattern when it's time.
Diffstat (limited to 'proxy_lua.c')
-rw-r--r-- | proxy_lua.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/proxy_lua.c b/proxy_lua.c index 3297d9f..85de700 100644 --- a/proxy_lua.c +++ b/proxy_lua.c @@ -220,10 +220,6 @@ static int mcplib_backend(lua_State *L) { be->tunables.connect.tv_sec = secondsi; be->tunables.connect.tv_usec = MICROSECONDS(subseconds); -#ifdef HAVE_LIBURING - be->tunables.connect_ur.tv_sec = secondsi; - be->tunables.connect_ur.tv_nsec = NANOSECONDS(subseconds); -#endif } lua_pop(L, 1); @@ -234,10 +230,6 @@ static int mcplib_backend(lua_State *L) { be->tunables.retry.tv_sec = secondsi; be->tunables.retry.tv_usec = MICROSECONDS(subseconds); -#ifdef HAVE_LIBURING - be->tunables.retry_ur.tv_sec = secondsi; - be->tunables.retry_ur.tv_nsec = NANOSECONDS(subseconds); -#endif } lua_pop(L, 1); @@ -248,10 +240,6 @@ static int mcplib_backend(lua_State *L) { be->tunables.read.tv_sec = secondsi; be->tunables.read.tv_usec = MICROSECONDS(subseconds); -#ifdef HAVE_LIBURING - be->tunables.read_ur.tv_sec = secondsi; - be->tunables.read_ur.tv_nsec = NANOSECONDS(subseconds); -#endif } lua_pop(L, 1); @@ -831,10 +819,6 @@ static int mcplib_backend_connect_timeout(lua_State *L) { STAT_L(ctx); ctx->tunables.connect.tv_sec = secondsi; ctx->tunables.connect.tv_usec = MICROSECONDS(subseconds); -#ifdef HAVE_LIBURING - ctx->tunables.connect_ur.tv_sec = secondsi; - ctx->tunables.connect_ur.tv_nsec = NANOSECONDS(subseconds); -#endif STAT_UL(ctx); return 0; @@ -849,10 +833,6 @@ static int mcplib_backend_retry_timeout(lua_State *L) { STAT_L(ctx); ctx->tunables.retry.tv_sec = secondsi; ctx->tunables.retry.tv_usec = MICROSECONDS(subseconds); -#ifdef HAVE_LIBURING - ctx->tunables.retry_ur.tv_sec = secondsi; - ctx->tunables.retry_ur.tv_nsec = NANOSECONDS(subseconds); -#endif STAT_UL(ctx); return 0; @@ -867,10 +847,6 @@ static int mcplib_backend_read_timeout(lua_State *L) { STAT_L(ctx); ctx->tunables.read.tv_sec = secondsi; ctx->tunables.read.tv_usec = MICROSECONDS(subseconds); -#ifdef HAVE_LIBURING - ctx->tunables.read_ur.tv_sec = secondsi; - ctx->tunables.read_ur.tv_nsec = NANOSECONDS(subseconds); -#endif STAT_UL(ctx); return 0; |