v8 config.xml settings

Moderators: Site Moderators, FAHC Science Team

Post Reply
ETA_2025
Posts: 91
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
10 x Raspberry Pi 5 Model B 2GB RAM
10 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

v8 config.xml settings

Post by ETA_2025 »

Is it possible to set the number of CPU's and behaviour while-on-battery in config.xml? It would be handy to do this, rather than changing these settings on multiple machines.

Also, is it possible to move the data directory (in Windows) to a different location (RAM drive, to avoid excessive writing to SSD) like in v7?

Finally, once set up, is it necessary to retain the v7 config.xml, or can it be deleted.
Image
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

user, team, passkey, cause, cpus are imported on first run. A few other settings are also imported on first run (I would have to read code to know what). After first run, all settings exposed in web control are stored in client.db

Config.xml is read only. It is optional unless you wish to use other settings like allow and log- settings.

If you want to use a nonstandard data directory on Windows, you should set it when installing.
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

config.xml is the easiest way to set the account token on first run so that the client is linked to your account.
ETA_2025
Posts: 91
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
10 x Raspberry Pi 5 Model B 2GB RAM
10 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: v8 config.xml settings

Post by ETA_2025 »

calxalot wrote: Tue Jan 21, 2025 4:57 am If you want to use a nonstandard data directory on Windows, you should set it when installing.
Did I miss that option, or is it not presented during installation.
Image
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

I believe you missed it.
It may have a non obvious name.
ETA_2025
Posts: 91
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
10 x Raspberry Pi 5 Model B 2GB RAM
10 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: v8 config.xml settings

Post by ETA_2025 »

calxalot wrote: Tue Jan 21, 2025 4:59 am config.xml is the easiest way to set the account token on first run so that the client is linked to your account.
I know. I was hoping to set up the other machine options, like machine name (which I do know how to do), the number of CPUs to use, and the scheduling options, so that I didn't have to do this after fah-client is up and running.
Image
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

Just looked at code. It's no longer clear what is and isn't imported.
You might need to experiment.

These might be imported, even though they're group options, as is cpus:
on-idle
on-battery
keep-awake
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

lufah can set most options when client is running.
ETA_2025
Posts: 91
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
10 x Raspberry Pi 5 Model B 2GB RAM
10 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: v8 config.xml settings

Post by ETA_2025 »

calxalot wrote: Tue Jan 21, 2025 4:57 am If you want to use a nonstandard data directory on Windows, you should set it when installing.
Indeed I had missed it (or more correctly rushed through the installation), and it has a perfectly obvious name. I remember thinking at the time, I just selected the install directory, why is it asking again.

I fixed it, by uninstalling, without deleting the data, then moving the data to the new location, and reinstalling, while selecting that new location for data. It's almost like I didn't actually uninstall and reinstall it.
Last edited by ETA_2025 on Tue Jan 21, 2025 12:32 pm, edited 1 time in total.
Image
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

You might check
fah-client --help
to see what might be supported in config.xml

Don't be deceived about xml format by the help output.
ETA_2025
Posts: 91
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
10 x Raspberry Pi 5 Model B 2GB RAM
10 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: v8 config.xml settings

Post by ETA_2025 »

calxalot wrote: Tue Jan 21, 2025 8:15 am You might check
fah-client --help
to see what might be supported in config.xml

Don't be deceived about xml format by the help output.
The help file has cpus <integer=7>, so should the number of CPUs be entered as:
<cpus v="4"/>
or cpus <"4">
or cpus <4>
or <cpus> = <"4">
or <cpus> = <4>
and with or without preceding double dashes?
Image
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

<cpus v=“4”/>

The value is always a string in config.xml.
The help indicates what the string should represent and the default value.
calxalot
Site Moderator
Posts: 1273
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: v8 config.xml settings

Post by calxalot »

The double dashes are for command line options.
ETA_2025
Posts: 91
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
10 x Raspberry Pi 5 Model B 2GB RAM
10 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: v8 config.xml settings

Post by ETA_2025 »

calxalot wrote: Tue Jan 21, 2025 9:07 pm <cpus v=“4”/>

The value is always a string in config.xml.
The help indicates what the string should represent and the default value.
calxalot wrote: Tue Jan 21, 2025 9:10 pm The double dashes are for command line options.
Thanks calxalot, <cpus v="4"/> was recognised, but the Cores count was still 3 under machine's settings.

Anyway, that was my last machine to move to v8, so I don't know if I'll need this option again.
Image
muziqaz
Posts: 1055
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, Radeon 7, 5700xt, 6900xt, RX 550 640SP
Location: London
Contact:

Re: v8 config.xml settings

Post by muziqaz »

If all the systems have been moved to v8, best to completely wipe config.xml and just configure everything through v8 webui.

cpu:3 issue might be related to the fact that v8 automatically reduces core count for a GPU
FAH Omega tester
Post Reply