Variable log length

Moderators: Site Moderators, FAHC Science Team

Post Reply
Dayle Diamond
Posts: 30
Joined: Thu Jan 28, 2021 11:10 am

Variable log length

Post by Dayle Diamond »

I've had my computer running without restarting for quite a while.

Sometimes the beta's log is extensive and goes back a dozen work units.

Sometimes the log goes back for just one or two.
In the old version, the log seemed to have a set number of lines.

My current log opens with

"*********************** Log Started 2023-04-01T00:00:05Z ***********************
00:00:05:I1::WU545:Completed 725000 out of 1250000 steps (58%)
00:00:10:I1::WU545:Checkpoint completed at step 725000"

Perhaps is it wiping all old information at T00:00:00 ?
Not sure if it's a bug or a feature.
calxalot
Site Moderator
Posts: 1117
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Variable log length

Post by calxalot »

The log is rotated every 24 hours.
It used to be only rotated at launch.
toTOW
Site Moderator
Posts: 6359
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: Variable log length

Post by toTOW »

Another weird choice for this client ... :(
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Variable log length

Post by Joe_H »

calxalot wrote: Sat Apr 01, 2023 3:37 am The log is rotated every 24 hours.
It used to be only rotated at launch.
Any settings available to turn off the log rotation or configure it to be a longer period than every 24 hours? Or do we need to put in an enhancement request.

I already modified the log retention setting from the default of 16 old logs, find old logs useful for checking on projects run weeks or months before as beta to compare to current reports. For example, there is a report of a project here that is getting unusually high points, apparently it is issuing some 1/5 size WUs in terms of steps. In this case my logs don't help as it is a GPU project, and currently only doing CPU projects. But I have identified this happening in the past for CPU projects.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
calxalot
Site Moderator
Posts: 1117
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Variable log length

Post by calxalot »

All available log settings can be seen via

Code: Select all

fah-client —help
On Windows, I think it is still named FAHClient.
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Variable log length

Post by Joe_H »

Okay, I see a parameter "log-rotate-period" with a default value of 86400 seconds or one day. Now to figure out how to start the client process with a different value set. Set to 0 would turn off rotating the log.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
calxalot
Site Moderator
Posts: 1117
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Variable log length

Post by calxalot »

Options go on command line, or preferably in config.xml.
calxalot
Site Moderator
Posts: 1117
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Variable log length

Post by calxalot »

Log files can get huge with a long running client, higher verbosity, and multiple GPU slots.
Post Reply