[Opendnssec-develop] Re: [Opendnssec-user]How to speed up signing performance

Matthijs Mekking matthijs at nlnetlabs.nl
Wed Dec 12 12:43:18 UTC 2012


Follow-up.

On 12/11/2012 04:26 PM, Matthijs Mekking wrote:
> When all writing this down, I think why it is waiting for 60 seconds
> (and now 5 seconds):
> 
> in worker_queue_rrset():
> - lock sign queue for queuing another RRset
> - sign queue is full, let's take a small break (5 or 60 seconds)

This is probably a flawed assumption, because the small break is
unlocking the mutex, and locking it when the wait is over. So the
drudgers should have no problem popping RRsets.

> 
> in worker_drudge():
> - try get lock sign queue, for popping RRset, but sign queue is full
> 
> in worker_queue_rrset():
> - stop waiting, unlock sign queue
> - continue while loop.
> 
> Now there are some iterations for popping and pushing, and perhaps we
> hit another 'small break'.
> 
> So, tuning down the 60 second wait to 5 seconds is a quick hack fix. I
> think the real fix is waiting in worker_queue_rrset() without holding
> the q_lock. Perhaps we need an push lock...
> 
> 
> Best regards,
>   Matthijs
> 
> 
> 
> 
> _______________________________________________
> Opendnssec-develop mailing list
> Opendnssec-develop at lists.opendnssec.org
> https://lists.opendnssec.org/mailman/listinfo/opendnssec-develop
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.opendnssec.org/pipermail/opendnssec-develop/attachments/20121212/a9eaf023/attachment.bin>


More information about the Opendnssec-develop mailing list