[SSSD] Speed hacks for testers

Simo Sorce ssorce at redhat.com
Sat Feb 27 21:36:57 UTC 2010


I hadn't run make check in a while while and today I discovered it was
horrendously slow. The problem lies almost entirely in the fact that we
use fsync a lot in all tests, this is because we want a "safe" behavior
for our DB, so that a system crash will not also crash the db
consistency and, at most, loose the current transaction.

This is all and well in production (and we may later want to discuss
which databases we really want to preserve at all costs), but to
perform functional test it sucks badly.

Attached find a patch that I am NOT proposing for inclusion, but that
will help all poor souls that need to do just tests.
If someone have a good idea on how to do that same thing but only
conditionally for tests (or maybe through a sssd.conf option) please
let me know.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-HACK-Speed-hacks.patch
Type: text/x-patch
Size: 1231 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100227/a46e77ae/attachment.bin>


More information about the sssd-devel mailing list