Welcome! Log In Create A New Profile

Advanced

nginx + lua and GC latency

Dave Bailey
December 08, 2012 04:26PM
Hi,

I am thinking of embedding Lua into nginx for some things where I need a
little more flexibility than my current module implementations allow.
Before I invest the time into this, I was wondering if any of you have
looked into the LuaJit GC latency. Mike Pall has a wiki page outlining his
plans for a new GC in LuaJIT 3.0:

http://wiki.luajit.org/New-Garbage-Collector

It sounds like he is not too thrilled with the performance of the current
(2.0) LuaJit GC, but I don't know if this means it's something I would need
to worry about, or if the latency of the current GC is fine. Has anyone
done any profiling to measure this on nginx under "real" load (e.g. 1k-2k
req/s and 100-200+ Mbits/s bandwidth per worker, or somewhere in that
range)? I like the flexibility that embedding LuaJit would give me, but
can't really afford GC pauses unless I know the latency is going to stay
below some reasonable value (maybe in the realm of 100 microseconds).

I am mainly interested in relatively simple Lua operations for now, such as
customized URL routing and other things that one could expect to be done
once per request. Any info would be much appreciated. Thanks-

-dave
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

nginx + lua and GC latency

Dave Bailey 1887 December 08, 2012 04:26PM

Re: nginx + lua and GC latency

Dirk Feytons 601 December 10, 2012 04:02AM

Re: nginx + lua and GC latency

Brian Akins 641 December 11, 2012 08:36PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready