-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sandboxie-Plus is constantly using about 2% of CPU, whereas Sandboxie-Classic uses about 0% CPU #1424
Comments
Its expected to use more as its Qt based and that has more overhead than a 20 year old MFC application, but 2% on a modern PC seams excessive. |
CPU spikes of 2% can be reached in idle after opening SandMan.exe, while the CPU is dropped to a constant 0,94% of usage if you reduce it as tray icon. If you open some menu entry like |
I have measured more "statistics". I started Sandboxie for 5 minutes (300 seconds) and checked the accumulated CPU time with Process Explorer. On my system, the results are the followings. Sandboxie-Plus (SandMan.exe)
Results are more or less identical. But, as mentioned by isaak654, on Windows Task Manager it seems that CPU is less on tray. Sandboxie-Classic (SbieCtrl.exe)
BUT, it seems that most of the CPU time was used by Sandboxie-Classic (SbieCtrl.exe) when the application starts. Then, CPU time stays nearly unchanged: |
Nope, I used Process Hacker 2.39. |
Originally posted by @DavidXanatos in #post-3056238
What about this?
|
I think this is a very old problem. The issue scales with the number of sandboxes registered. For example, 200 empty boxes with SB+ in tray draws ~2% processor time, and (idle) open SB+ over 5%. From (ancient code review) memory, I think it's nothing to do with the default Qt event loop. Rather, SB+ actively polls some configuration info repeatedly from the driver. Maybe here: Sandboxie/SandboxiePlus/SandMan/SandMan.cpp Line 738 in 9cf189b
(Apologies, I may be wrong with this. It's been a long time). Regardless, it would be great to have this fixed. If CPU goes above some low %, the fans kick in 😅 Example; 200 all-empty sandboxie boxes. 4 Core / 8 thread CPU: |
In 1.0.3, the That might help a bit... |
Because of this, I've set SB Plus not to close to the tray. I open it when I need it from a pinned taskbar icon, and it's also set to open automatically when I run a sandboxed program. This way, when not in use, it consumes 0% CPU. |
This seems improved in latest versions. |
Hello,
I noticed that Sandboxie-Plus (SandMan.exe) is constantly using about 2% of CPU, event when no sandboxed application is running. When a sandboxed application is running, the CPU usage remains the same (about 2%).
I check with Sandboxie-Classic, and the CPU usage is nearly 0%, without and with sandboxed running application.
It seems then that Sandboxie-Plus (SandMan.exe) is using significantly more CPU than Sandboxie-Classic.
Sandboxie-Plus
![Sandboxie_plus_noapp_2](https://user-images.githubusercontent.com/89442281/145539663-019655a8-6333-4e03-a613-70eb7784dc8f.png)
(without sandboxed application)
(with sandboxed application)
![Sandboxie_plus_Firefox](https://user-images.githubusercontent.com/89442281/145539722-45a59cbf-fb01-4a6e-8c2e-2679ffd6c301.png)
Sandboxie-Classic
![Sandboxie_classic_1](https://user-images.githubusercontent.com/89442281/145539435-58d0e65a-f54b-4aa9-863b-10641e1d1631.png)
Note that Sandboxie was running only for a few minutes when I took this screenshots, reason why the accumulated CPU time is still low.
I observed this behavior on previous versions too, but these screenshots were done with:
Operating system: Windows 10 Pro 21H2.
Is it expected that Sandboxie-Plus (SandMan.exe) uses "so much" CPU, compared to Sandboxie-Classic?
Thanks.
The text was updated successfully, but these errors were encountered: