beanstalkd 1.5 100% CPU usage

512 views
Skip to first unread message

Anton

unread,
Jan 31, 2012, 8:03:11 AM1/31/12
to beansta...@googlegroups.com
Hi there,
I am running new beanstalkd 1.5 on my openbsd box in the production
already. It works.

Currently the beanstalkd process is consuming about 100% CPU (1 core)
but working.

I've tried to trace the process and here is the output[1]
I am not a strong C developer... and maybe somebody smarter than me
could help to solve this CPU consuming loop issue or point me to where I
should look? Thanks in advance.


[1] -- ktrace + kdump output:

CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1
CALL gettimeofday(0x7f7ffffc5f50,0)
RET gettimeofday 0
CALL read(0x1d,0x207db7854,0xd0)
RET read -1 errno 35 Resource temporarily unavailable
CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1
CALL gettimeofday(0x7f7ffffc5f50,0)
RET gettimeofday 0
CALL read(0x1b,0x207db7c54,0xd0)
RET read -1 errno 35 Resource temporarily unavailable
CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1
CALL gettimeofday(0x7f7ffffc5f50,0)
RET gettimeofday 0
CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1
CALL gettimeofday(0x7f7ffffc5f50,0)
RET gettimeofday 0
CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1
CALL gettimeofday(0x7f7ffffc5f50,0)
RET gettimeofday 0
CALL read(0x10,0x20cd73054,0xd0)
RET read -1 errno 35 Resource temporarily unavailable
CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1
CALL gettimeofday(0x7f7ffffc5f50,0)
RET gettimeofday 0
CALL kevent(0x6,0,0,0x7f7ffffc5f80,0x1,0x829e80)
RET kevent 1


--
Anton

Eugene Kaydalov

unread,
Feb 4, 2012, 2:16:11 AM2/4/12
to beansta...@googlegroups.com
I remember something like this happening when we reserved a couple hundred thousand jobs and never released them.


--
You received this message because you are subscribed to the Google Groups "beanstalk-talk" group.
To post to this group, send email to beansta...@googlegroups.com.
To unsubscribe from this group, send email to beanstalk-tal...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.


Keith Rarick

unread,
Feb 5, 2012, 1:26:00 AM2/5/12
to beansta...@googlegroups.com

Keith Rarick

unread,
Feb 12, 2012, 10:14:49 PM2/12/12
to beansta...@googlegroups.com
On Sat, Feb 4, 2012 at 10:26 PM, Keith Rarick <k...@xph.us> wrote:
> Let's use https://github.com/kr/beanstalkd/issues/53 to track this.

Also reported as https://github.com/kr/beanstalkd/issues/96.
Also fixed now.

kr

Reply all
Reply to author
Forward
0 new messages