[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RE: RAQ3 128MB - load average: 64.62, 73.63, 42.86



On Fri, 12 Oct 2001, Tong Narak wrote:

> Sir,
> 
> bash# grep VM_ /var/log/messages
> bash#
> 
> No, it doesn't have the error. below is my go.cgi
> which access very often by visitor it is in my webboard.
> 
> #!/usr/bin/perl

> open(DATA,"+<dat/${DATE}.dat") or die;
> flock(DATA,2);
> @data = <DATA>;

That is probably killing you, you are locking the file for EXCLUSIVE
access, every other cgi has to wait till this one is done...do you really
need it locked all the time?

(The splits and joins are fairly expensive btw)

gsh