Page 1 of 1

v8 config.xml settings

Posted: Tue Jan 21, 2025 4:40 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 4:57 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 4:59 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 5:46 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 5:50 am
by calxalot
I believe you missed it.
It may have a non obvious name.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 8:03 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 8:08 am
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

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 8:10 am
by calxalot
lufah can set most options when client is running.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 8:12 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 8:15 am
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 12:32 pm
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?

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 9:07 pm
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.

Re: v8 config.xml settings

Posted: Tue Jan 21, 2025 9:10 pm
by calxalot
The double dashes are for command line options.

Re: v8 config.xml settings

Posted: Wed Jan 22, 2025 2:39 am
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.

Re: v8 config.xml settings

Posted: Fri Jan 24, 2025 9:20 pm
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