Open Van-QA opened 2 weeks ago
I am encountering a similar issue on Arch Linux. After opening Jan, loading a model, and then closing the application, the process 'cortex-cpp' continues to run in the background. This causes a slowdown of the GPU, particularly noticeable when launching games. Each time I exit Jan, I need to manually terminate the 'cortex-cpp' process to resolve the problem.
https://discord.com/channels/1107178041848909847/1252601327255683145
Describe the bug The inference engine process associated with Jan does not terminate even after Jan is closed, resulting in excessive VRAM usage.
To Reproduce
Expected behavior Upon closing Jan, the inference engine process should also terminate, releasing the used VRAM.
Screenshots![image](https://github.com/janhq/cortex/assets/64197333/675c796e-d518-4c8e-be22-ee0742a3bff4)
Hardware: 2024-06-18T14:13:50.264Z [SPECS]::0, 8188, NVIDIA GeForce RTX 4070 Laptop GPU 2024-06-18T14:13:50.264Z [SPECS]::OS Platform: linux 2024-06-18T14:13:50.265Z [APP]::{"notify":true,"run_mode":"gpu","nvidia_driver":{"exist":true,"version":"550.90.07"},"cuda":{"exist":true,"version":"12"},"gpus":[{"id":"0","vram":"8188","name":"NVIDIA GeForce RTX 4070 Laptop GPU","arch":"ada"}],"gpu_highest_vram":"0","gpus_in_use":["0"],"is_initial":false}
Additional context The user has tried killing the process manually, but the issue persists. The logs show that the app is trying to kill the cortex-cpp server before it exits, suggesting that the app process may be being killed before the cortex-cpp process can be terminated or that a stronger signal than SIGTERM may be required to kill the cortex-cpp process.
Log message (9).txt