Possible Memory Leak in FAH client

Moderators: Site Moderators, FAHC Science Team

Post Reply
semicolonTransistor
Posts: 2
Joined: Thu Aug 07, 2025 1:28 am

Possible Memory Leak in FAH client

Post by semicolonTransistor »

The FAHClient.exe process alone is taking nearly 10GB of memory.

Image

Restarting FAH did not resolve the issue; the FAH process allocated nearly 10GB of memory immediately after startup.

OS: Windows 11 Pro 24H2
FAH: Version 8.4.9
calxalot
Site Moderator
Posts: 1668
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Possible Memory Leak in FAH client

Post by calxalot »

What you are describing is not a memory leak. It is excessive memory usage.

Possibly related:
https://github.com/FoldingAtHome/fah-cl ... issues/291
muziqaz
Posts: 2103
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 9950x3D, 5950x, 5800x3D
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, Intel B580
Location: London
Contact:

Re: Possible Memory Leak in FAH client

Post by muziqaz »

We can reproduce this all the time after we restart the pc with paused WU. FAHclient does something at that point to take all this memory. Dev is aware of it, not sure when the fix will be implemented.
Memory usage usually normalises after a while, or after you finish the WUs
FAH Omega tester
Image
semicolonTransistor
Posts: 2
Joined: Thu Aug 07, 2025 1:28 am

Re: Possible Memory Leak in FAH client

Post by semicolonTransistor »

I see. Just out of curiosity, what would be a reasonable, stable memory usage amount for the FAHClient? It appears that it still consumes 1-3GB of memory even after running for a while.
calxalot
Site Moderator
Posts: 1668
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Possible Memory Leak in FAH client

Post by calxalot »

Recently restarted client on macOS 15.6 intel
According to Activity Monitor
real mem 36 MB
private mem 14 MB
virtual mem 34 GB
muziqaz
Posts: 2103
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 9950x3D, 5950x, 5800x3D
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, Intel B580
Location: London
Contact:

Re: Possible Memory Leak in FAH client

Post by muziqaz »

In windows it is 10s of MBs
FAH Omega tester
Image
arisu
Posts: 586
Joined: Mon Feb 24, 2025 11:11 pm

Re: Possible Memory Leak in FAH client

Post by arisu »

I notice that it consumes 1-3 GB after a while as well on Linux. This is resident memory, not virtual memory which is expected to be large. It might be doing something weird like not removing downloaded or uploaded wudata/wuresults files from memory after downloading/uploading them. I've been planning to look into this.
dplinker
Posts: 1
Joined: Sat Aug 23, 2025 1:54 pm
Hardware configuration: Kubuntu 24.04
NVIDIA GeForce RTX 4060
Intel® Core™ i5-13400F
Location: North Carolina, USA

Re: Possible Memory Leak in FAH client

Post by dplinker »

I am also having issues on Kubuntu 24.04. FAH client will grow constantly.

Code: Select all

systemctl restart fah-client
will set it back to a reasonable size, but if I don't do that regularly it will eventually cause my system to seize.
EdgeArcher
Posts: 2
Joined: Mon Apr 21, 2025 2:52 pm

Re: Possible Memory Leak in FAH client

Post by EdgeArcher »

Same issue on Windows 11 23H2
muziqaz
Posts: 2103
Joined: Sun Dec 16, 2007 6:22 pm
Hardware configuration: 9950x, 9950x3D, 5950x, 5800x3D
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, Intel B580
Location: London
Contact:

Re: Possible Memory Leak in FAH client

Post by muziqaz »

Fix is in the works
FAH Omega tester
Image
Post Reply