[Serusers] error: uac does not spread accross the whole hash table

Jan Janak jan at iptel.org
Fri Dec 3 21:30:00 CET 2004


Actually it is not a bug because on most systems the value of
RAND_MAX is bigger than 64K. If you want to get rid of the message than
set T_TABLE_POWER to 8.

It is just a warning that the hash table would not be fully utilized
(and thus you might get worse performance), but it will not harm.

  Jan.

On 01-12 12:47, Rao wrote:
> I am getting following error on 0.8.12 release on
> solaris
> 
> Nov 30 15:16:04 serz ./ser[19619]: [ID 767465
> daemon.warning] Warning: 
> uac does not spread accross the whole hash table
> 
> Looking at the code:
> 
> #define RAND_MAX 32767
> 
> And
> 
> /* always use a power of 2 for hash table size */
> #define T_TABLE_POWER    16
> #define TABLE_ENTRIES    (1 << (T_TABLE_POWER)) == 64K
> 
> int uac_init(void)
> {
>         str src[3];
> 
>         if (RAND_MAX < TABLE_ENTRIES) {
>                 LOG(L_WARN, "Warning: uac does not
> spread "
>                     "accross the whole hash table\n");
>         }
> <....>
> 
> }
> 
> So it seems that this condition will always be true.
> Which seems like a bug in uac.c. However I don't 
> always see the error message even though tm module is
> always loaded sny ideas why ? 
> Also I dont see any serious operational issues due to
> this warning. Is that correct?
> 
> Thanks.
> 
> Rao.
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> The all-new My Yahoo! - Get yours free! 
> http://my.yahoo.com 
>  
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list