"EAGAIN (Resource temporarily unavailable)"

3,922 views
Skip to first unread message

prox

unread,
Nov 17, 2008, 9:41:40 AM11/17/08
to memcached
hey guys,

if i strace the memcache process there is a message repeating every
few lines "EAGAIN (Resource temporarily unavailable)", but i dont know
what it means. any suggestions?

here is a cutout of straces output, maybe it helps?

read(7, 0xa63de3b2, 261206) = -1 EAGAIN (Resource
temporarily unavailable)
setsockopt(7, SOL_TCP, TCP_CORK, [1], 4) = 0
time(NULL) = 1226932729
time(NULL) = 1226932729
time(NULL) = 1226932729
write(7, "STORED\r\n", 8) = 8
setsockopt(7, SOL_TCP, TCP_CORK, [0], 4) = 0
read(7, 0xa63de008, 262144) = -1 EAGAIN (Resource
temporarily unavailable)

prox

unread,
Nov 17, 2008, 9:41:42 AM11/17/08
to memcached

Clint Webb

unread,
Nov 18, 2008, 9:25:50 PM11/18/08
to memc...@googlegroups.com
Normally EAGAIN means that there was no data there to retrieve.  Normally the event system would only fire when there is data to get, so I'm not sure how this relates.
--
"Be excellent to each other"

dormando

unread,
Nov 19, 2008, 1:15:03 AM11/19/08
to memc...@googlegroups.com
memcached reads data, non-blocking, in a loop, until it gets EAGAIN. In a
couple places. Once it gets EAGAIN it knows there's no more data to read
and continues with the command.

-Dormando

Reply all
Reply to author
Forward
0 new messages