|
List Info
Thread: CPU use by Perl
|
|
| CPU use by Perl |

|
2007-01-26 10:59:09 |
|
| Allo!
My hosting provider have recently installed a monitor gizmo to
shut down Perl script to hungry. This gizmo shut down before the end
of the script and this cause some inconvenience to me and to the
site users, cause, the sites need this script to update.
I run this script for a long time whitout problem, I try to limit the
execution timeout under 5-6 second.
As my provider don't want to lower the gizmo sensibility, I want to
know how I can know how much ressource is use by the script.
Also, any recommendation about a hosting provider whitout this kind
of limitation.
I need abont 5g of space and 20 g transfert by month (reseller account).
About 20 domains in that space.
Thank
Gilles B.
---
Webmasters helping webmasters
http://www.balour.org/
Unsubscribing info is here: http://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|
| Re: CPU use by Perl |

|
2007-01-27 09:26:15 |
Allo!
>Gilles> My hosting provider have recently installed a
monitor gizmo to
>Gilles> shut down Perl script to hungry. This gizmo
shut down before the end
>Gilles> of the script and this cause some
inconvenience to me and to the
>Gilles> site users, cause, the sites need this script
to update.
>
>Gilles> I run this script for a long time whitout
problem, I try to limit the
>Gilles> execution timeout under 5-6 second.
>
>Gilles> As my provider don't want to lower the gizmo
sensibility, I want to
>Gilles> know how I can know how much ressource is use
by the script.
>
>If you just want wall-clock time, user and system CPU
time, and user
>and system CPU time used by your kids:
>
>my times;
>BEGIN { times = (time, times); }
>END {
> times = map { $_ - shift times } (time, times);
> warn sprintf "clock: %d user: %.2g sys: %.2g
cuser: %.2g csys:
> %.2g", times;
>}
>#user = user cpu time
>#sys = sys cpu time
>#cuser/csys = same thing for all children
I put the following in my script and I don't see any
result.
Could you explain more?
Appreciate
Gilles B.
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| Re: CPU use by Perl |

|
2007-01-27 09:38:29 |
>>>>> "Gilles" == Gilles Beauregard
<gilles balour.org> writes:
>> my times;
>> BEGIN { times = (time, times); }
>> END {
>> times = map { $_ - shift times } (time, times);
>> warn sprintf "clock: %d user: %.2g sys: %.2g
cuser: %.2g csys: %.2g",
>> times;
>> }
>> #user = user cpu time
>> #sys = sys cpu time
>> #cuser/csys = same thing for all children
Gilles> I put the following in my script and I don't see
any result.
It'll write to STDERR. You have to look for it. If this is
a webserver,
that'll be in the error log. Otherwise, it should be on the
screen, right
at the end.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. -
+1 503 777 0095
<merlyn stonehenge.com> <URL:http://www.ston
ehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy,
etc. etc.
See PerlTraining.Stonehenge.com for onsite and
open-enrollment Perl training!
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| Re: CPU use by Perl |

|
2007-01-26 14:57:35 |
>>>>> "Gilles" == Gilles Beauregard
<gilles balour.org> writes:
Gilles> Allo!
Gilles> My hosting provider have recently installed a
monitor gizmo to
Gilles> shut down Perl script to hungry. This gizmo shut
down before the end
Gilles> of the script and this cause some inconvenience
to me and to the
Gilles> site users, cause, the sites need this script to
update.
Gilles> I run this script for a long time whitout
problem, I try to limit the
Gilles> execution timeout under 5-6 second.
Gilles> As my provider don't want to lower the gizmo
sensibility, I want to
Gilles> know how I can know how much ressource is use by
the script.
If you just want wall-clock time, user and system CPU time,
and user
and system CPU time used by your kids:
my times;
BEGIN { times = (time, times); }
END {
times = map { $_ - shift times } (time, times);
warn sprintf "clock: %d user: %.2g sys: %.2g cuser:
%.2g csys: %.2g", times;
}
user = user cpu time
sys = sys cpu time
cuser/csys = same thing for all children
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. -
+1 503 777 0095
<merlyn stonehenge.com> <URL:http://www.ston
ehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy,
etc. etc.
See PerlTraining.Stonehenge.com for onsite and
open-enrollment Perl training!
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|