* Memory consuming script for CSH
@ 2002-09-05 16:24 Maurizio Fuschetto
2002-09-05 21:26 ` Paul Szabo
0 siblings, 1 reply; 2+ messages in thread
From: Maurizio Fuschetto @ 2002-09-05 16:24 UTC (permalink / raw)
Under Digital Unix 4.0F and csh, the following script:
while (1)
sleep 1
kill -USR2 `cat pidfile`
end
where pidfile contains a pid of a target process, cause the csh in which
is executed to eat lot of memory - say, about 500K per second.
Interrupting the script execution with CTRL-C, produces the csh to break
the script but NOT frees the allocated memory.
Replacing `cat pidfile` with a constant or using anything but kill (I
tried with echo) does not have such effect.
Some tips??
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Memory consuming script for CSH
2002-09-05 16:24 Memory consuming script for CSH Maurizio Fuschetto
@ 2002-09-05 21:26 ` Paul Szabo
0 siblings, 0 replies; 2+ messages in thread
From: Paul Szabo @ 2002-09-05 21:26 UTC (permalink / raw)
To: Maurizio Fuschetto
Maurizio Fuschetto wrote:
> Under Digital Unix 4.0F and csh, the following script:
>
> while (1)
> sleep 1
> kill -USR2 `cat pidfile`
> end
>
> where pidfile contains a pid of a target process, cause the csh in which
> is executed to eat lot of memory - say, about 500K per second.
>
> Interrupting the script execution with CTRL-C, produces the csh to break
> the script but NOT frees the allocated memory.
>
> Replacing `cat pidfile` with a constant or using anything but kill (I
> tried with echo) does not have such effect.
>
> Some tips??
I find the same problem with V5.1 and latest patches: it does not matter
what PID is in pidfile (as long as it numeric) or what signal is used.
I guess this is a bug in csh. Maybe you want to send a bug report to
Compaq (now also known as the "New HP").
--
Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-05 21:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05 16:24 Memory consuming script for CSH Maurizio Fuschetto
2002-09-05 21:26 ` Paul Szabo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox