Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

system memory slowly increase

Open Laidawang opened this issue 1 year ago • 7 comments

Read Troubleshoot

[x] I admit that I have read the Troubleshoot before making this issue.

Describe the problem The memory used by the program seems to be slowly increasing

Full Console Log image image image This is a potential problem that cannot be expressed in log. You can see that the memory occupied by fooocus is slowly increasing. My startup params: python entry_with_update.py --listen 0.0.0.0 --all-in-fp16 --port 8000 --always-gpu

Laidawang avatar Dec 29 '23 05:12 Laidawang

Thank you for the report, it sould be great if you could provide further information: Does this happen repeatedly, so can you reproduce the behavior? Is this only happening on your machine and what are you doing in Fooocus?

Can somebody else confirm this behavior and is experiencing also an increase in memory over time?

mashb1t avatar Dec 29 '23 11:12 mashb1t

memory.log I recorded the memory of 20 times outpainting(four directions). Memory usage is indeed rising, although it is not obvious.

This is my code, Can somebody else try to reproduce this process on his computer?

#!/bin/bash  
while true; do
  memory=$(ps aux | grep PID | awk '{print $6}')
  datetime=$(date "+%Y-%m-%d %H:%M:%S")
  echo "$datetime Memory Usage: $memory" >> memory.log
  sleep 3
done

Laidawang avatar Dec 31 '23 05:12 Laidawang

Yup it does, like a hungry dog want to eat more hotdogs :-). I will test some more to see here i can improve on system lvl: memory usage Fooocus memory usage Fooocus-2 memory usage Fooocus-3

rvdd1962 avatar Dec 31 '23 20:12 rvdd1962

any solution?

yxt132 avatar Jan 07 '24 03:01 yxt132

Still working on it. Got some results but i need to tweak more. Here is the current state: test-3

rvdd1962 avatar Jan 07 '24 19:01 rvdd1962

Any progress?

yxt132 avatar Feb 05 '24 06:02 yxt132

yes same issue for me!

aryan1107 avatar Mar 29 '24 01:03 aryan1107