effect of access.log size on server speed

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
erskie
-


Joined: 16 Jan 2004
Posts: 31
Location: ALL over

PostPosted: Mon Jun 19, 2006 2:59 pm    Post subject: effect of access.log size on server speed Reply with quote

All,

Possibly a silly question:

I have noticed that access.log grows at an alarming rate (which is a good thing!). What I was wondering is if anyone has noticed that the size of this file, which is permanently held in memory (?) has any effect of server speed? How often do people clear the file?

Cheers,

Erskie
_________________
'Smile', he said, 'things could get worse...'

So I smiled, and things got worse...
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon Jun 19, 2006 3:26 pm    Post subject: Reply with quote

It should not affect the speed as it only adds to the end of the file. The server never has to read the file (only needs to know its there to write to).

Aprelium can give you more detail on this.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jun 20, 2006 2:21 pm    Post subject: Re: effect of access.log size on server speed Reply with quote

erskie wrote:
What I was wondering is if anyone has noticed that the size of this file, which is permanently held in memory (?) has any effect of server speed


The file is never held in memory. Data is appended to it on the disk. So even if you have 64 MB of RAM, your log file can grow to 1 GB without any problems.
_________________
Support Team
Aprelium - http://www.aprelium.com


Last edited by aprelium on Wed Jun 21, 2006 10:48 am; edited 1 time in total
Back to top View user's profile Send private message Send e-mail
erskie
-


Joined: 16 Jan 2004
Posts: 31
Location: ALL over

PostPosted: Tue Jun 20, 2006 10:12 pm    Post subject: Conclusion Reply with quote

Thank you very much. I appreciate the quick response!
_________________
'Smile', he said, 'things could get worse...'

So I smiled, and things got worse...
Back to top View user's profile Send private message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Fri Jun 30, 2006 10:27 am    Post subject: Reply with quote

I'm not really on authority on this but, in theory, a potential bottleneck would be your operating system's filesystem. In my programming experience, there does EXIST some speed slow-down when I'm appending to larger files (text-file, append mode only; method described as open filehandle in append mode; write one line; close filehandle). I'm talking about a text file that is over 200 megabytes in size. I never did measure how long the lag was, but I FELT that it was indeed there. Nevertheless, the slow-down may not be of any significant difference.

Ultimately, depending on your website's circumstances, this may or may not pose significant performance degradation. This is another selling point for rotating your log files by a certain criteria.
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Jun 30, 2006 1:24 pm    Post subject: Reply with quote

loloyd wrote:
I'm not really on authority on this but, in theory, a potential bottleneck would be your operating system's filesystem. In my programming experience, there does EXIST some speed slow-down when I'm appending to larger files (text-file, append mode only; method described as open filehandle in append mode; write one line; close filehandle). I'm talking about a text file that is over 200 megabytes in size. I never did measure how long the lag was, but I FELT that it was indeed there. Nevertheless, the slow-down may not be of any significant difference.


That's right. It also depends on the fragmentation level of the hard drive and on many other parameters. NTFS partitions handle this operation better than FAT.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group