[torqueusers] pbs_mom eating memory like a maniac

Garrick Staples garrick at usc.edu
Thu Nov 10 15:11:52 MST 2005


On Thu, Nov 10, 2005 at 02:30:51PM -0700, Dave Jackson alleged:
> Garrick,
> 
>   You are awesome!  Let me know and we'll roll it in and push out a
> build.

This isn't a new bug, it's just recently made worse by additional calls
to check_pwd().

diff -pruN torque-2.0.0p1_orig/src/resmom/start_exec.c torque-2.0.0p1/src/resmom/start_exec.c
--- torque-2.0.0p1_orig/src/resmom/start_exec.c 2005-11-05 07:39:55.000000000 -0800
+++ torque-2.0.0p1/src/resmom/start_exec.c      2005-11-10 14:04:31.000000000 -0800
@@ -259,6 +259,9 @@ struct passwd *check_pwd(
     return(NULL);
     }
 
+  if (pjob->ji_grpcache != NULL)
+    return (pwdp);  /* been there, done that */
+
   pjob->ji_qs.ji_un.ji_momt.ji_exuid = pwdp->pw_uid;
 
   pjob->ji_grpcache = malloc(sizeof(struct grpcache) + strlen(pwdp->pw_dir) + 1);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20051110/d72b0596/attachment.bin


More information about the torqueusers mailing list