<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12px"><span id="yui_3_16_0_1_1418979352735_5311"></span><div id="yui_3_16_0_1_1418979352735_5232" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1418979352735_5231" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"><div id="yui_3_16_0_1_1418979352735_5233" class="y_msg_container"><div id="yiv8983890821"><div id="yui_3_16_0_1_1418979352735_5269"><div id="yui_3_16_0_1_1418979352735_5268" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12px;"><div id="yiv8983890821yui_3_16_0_1_1418979352735_3769" dir="ltr" style="MARGIN-RIGHT:0px;FONT-FAMILY:verdana, helvetica, sans-serif;" align="left"><div id="yui_3_16_0_1_1418979352735_5892" dir="ltr">Hello Sir/Madam,</div><div id="yui_3_16_0_1_1418979352735_6118" dir="ltr"><br style="" class="">I am working on a PAM authentication module where i am seeing delay in pam_authenticate when called in sucessive manner.Below is my PAM function call sequence.<br style="" class="">pam_start()<br style="" class="">...<br style="" class="">1. pam_authenticate()<br style="" class="">2. pam_authenticate()<br style="" class="">3. pam_authenticate()<br style="" class=""><br style="" class="">4. pam_authenticate()<br style="" class=""><br style="" class="">....<br style="" class=""><br style="" class="">1000.pam_authenticate()<br style="" class="">....<br style="" class="">pam_end()<br style="" class=""><br style="" class="">It is observed that the first pam_authenticate responds with 40 ms. The response time goes up with every subsequent pam_authenticate call. for 1000 the call the response time is observed to be 2 seconds.<br style="" class=""><br style="" class="">Below are my system details:<br style="" class=""><br style="" class="">[myuser@myhost workdir]$ ls -l /lib/libpam*<br style="" class="">lrwxrwxrwx. 1 root root    17 Oct 18  2013 /lib/libpamc.so.0 -> libpamc.so.0.82.1<br style="" class="">-rwxr-xr-x. 1 root root 13764 Oct 15  2012 /lib/libpamc.so.0.82.1<br style="" class="">lrwxrwxrwx. 1 root root    21 Oct 18  2013 /lib/libpam_misc.so.0 -> libpam_misc.so.0.82.0<br style="" class="">-rwxr-xr-x. 1 root root 11460 Oct 15  2012 /lib/libpam_misc.so.0.82.0<br style="" class="">lrwxrwxrwx. 1 root root    16 Oct 18  2013 /lib/libpam.so.0 -> libpam.so.0.82.2<br style="" class="">-rwxr-xr-x. 1 root root 52540 Oct 15  2012 /lib/libpam.so.0.82.2<br style="" class="">[myuser@myhost workdir]$ uname -a<br style="" class="">Linux myhost 2.6.32-358.18.1.el6.i686 #1 SMP Fri Aug 2 17:10:27 EDT 2013 i686 i686 i386 GNU/Linux<br style="" class="">[myuser@myhost workdir]$ cat /etc/redhat-release<br style="" class="">Red Hat Enterprise Linux Server release 6.4 (Santiago)<br style="" class=""></div><div id="yui_3_16_0_1_1418979352735_6119" dir="ltr"><br></div><div id="yui_3_16_0_1_1418979352735_6120" dir="ltr">I have observed the same behavior on RHEL 6.2 as well. <br></div><span id="yiv8983890821yui_3_16_0_1_1418979352735_3832" style="" lang="en-us"><font id="yiv8983890821yui_3_16_0_1_1418979352735_3831" face="Verdana" size="1" color="#808080"><b id="yiv8983890821yui_3_16_0_1_1418979352735_3830">Thanks & Regards,</b></font></span><span id="yiv8983890821yui_3_16_0_1_1418979352735_3768" lang="en-us"><font face="Verdana"> <br></font><b id="yui_3_16_0_1_1418979352735_6113"><font id="yui_3_16_0_1_1418979352735_6114" face="Verdana" size="1" color="#0000ff">MINAL PATIL</font></b><font face="Verdana"><br></font><br></span></div></div></div></div><br><br></div> </div> </div>  </div></body></html>