Hello,
I made a patch that adds fast locking mechanisms instead of
seq file for freeradius-client.
This patch is based on putting the sequence number in the
shared memory. Two approaches used to do a mutual exclusion for shared memory:
a) GCC builtin atomic memory access (only on Intel)
b) POSIX named semaphore
Fallback:
c) If nothing of the above available it fallbacks to a
sequence file locks.
Originally I did it against radiusclient-ng, but looks that
freeradius-client is a correct place. The patch works for freeradius-client
1.1.6 as well.
Here’s a patch and more detailed description:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=2810&group_id=1208
--
Best
Regards,
Alex
Massover
VoIP
R&D TL
Jajah
Inc.