activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <>
Subject Re: consumer prefetch considered harmful ..evict from the prefetch buffer?
Date Wed, 10 Jun 2015 20:06:16 GMT
> Eeek.  Are you sure you're not wasting more resources switching contexts
> than you're gaining by nominally keeping a thread on all cores at all
> times?  (Some of that CPU time is being spent moving threads around rather
> than running them.)
The threads are used to hide IO for the most part.. when then need to do
work they acquire a semaphore which is usually the number of cores.

so we only context switch when a packet is available, then we acquire the
semaphore to do the actual work.

Ideally the entire system would be async IO but this is a good compromise.

> I don't know what priority it runs as, but could you figure it out by
> attaching a debugger and setting a breakpoint and then examining the thread
> in the Watch/Expressions windows?  You might even try raising that thread's
> priority (via the debugger, initially) and seeing if it makes an
> improvement.

Another way to do is to enumerate all threads and then read the priority
back out…



Location: *San Francisco, CA*
… or check out my Google+ profile

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message