[.05] Major slowness with 4.01

Listing issues addressed in beta version 4.01
bo.elam
Sandboxie Guru
Sandboxie Guru
Posts: 2809
Joined: Wed Apr 22, 2009 9:17 pm

Post by bo.elam » Wed Apr 10, 2013 11:45 pm

tzuk wrote:I introduced some optimizations into the GUI code so hopefully version 4.01.05 improves performance a bit.
The slowness that I felt in earlier betas running Outlook Express and Windows Explorer sandboxed is gone (XP).

Bo

DR_LaRRY_PEpPeR
Posts: 291
Joined: Wed Jul 04, 2012 6:40 pm
Location: St. Louis area

Post by DR_LaRRY_PEpPeR » Fri Apr 12, 2013 10:18 am

tzuk wrote:I introduced some optimizations into the GUI code so hopefully version 4.01.05 improves performance a bit. As for registry performance I'm not sure I have anything conclusive yet. I'd like to hear how version 4.01.05 behaves for you.
Thanks, now I have hope! :D Regarding registry speed, you must have done something? Performance on regedit search (Keys/Values/Data) is nearly TWICE as fast as .04! Can we get some more of that? ;) Nearly doubling again would be better than 3.76. :)

Also, I'm still wondering about possible kernel memory leaks I asked about awhile back in 3.76 (unless just Windows weirdness, but you said you'd look into it after the 4 beta), plus others now in 4.01. I have Task Manager screenshots before and after closing sandboxed programs. It was active for 20 days, and you can see kernel memory drop 200 MB (same as 3.x). Also running that whole time, OE, and its memory usage increased continuously (maybe slower at the end) and well as SBIE's GuiProxy process (same PIDs as earlier Process Explorer screenshot), and that did NOT drop at all after closing stuff... I'll watch .05 now. It seems to be using less CPU time (but still more than 3.x).

Before: Processes/Performance
After: Processes/Performance


Now the interface/GUI slowness... I immediately noticed populating and scrolling the ListView controls (Explorer, OE messages, etc.) was very fast again (no need to measure). So I guess that's like 3.76. :) Still noticed general slowness, however (launching, opening new windows, Open/Save dialogs, etc.; more in a sec). I see you fixed the Firefox Save As click-Cancel-twice-to-actually-cancel glitch.

Then I went to check PerformanceTest's 2D Windows Interface benchmark, and was going to say, "I see what you did there." ;) Just optimized for that benchmark, but other stuff was still slow? (Did you ever run it?) Haha, no I see that's not true now, and I guess what fixed the ListView stuff really fixed PerformanceTest: I'm seeing like 20% better Windows Interface scores sandboxed now, compared to UNsandboxed! :shock: Not sure how that's happening (maybe FindWindow() is faster sandboxed without "other" windows? *shrug*)


That's all I thought there'd be to report, until I wanted to verify that Recent Documents still won't work at all... I hadn't tried with OpenWin=* on the main system before to check Recent Docs, but I did that and launched IE 6 to do a test "Save As," and guess what? It was WAY faster, felt nearly like 3.76! I waited till later to get some AppTimer numbers from the laptop, but... Basically no difference there; few hundredths, but I'd expect that if a whole chunk of code is bypassed with * :) So then before my other post yesterday, back to this system to check AppTimer...

(This is all about launching IE 6.) Main system, usual SBIE settings: 1.22s (I originally said over a second, though I hadn't timed anything in forever here), which I think is better than .04 going by laptop comparisons. When I just added OpenWin=*, that dropped to 0.5s!

I only have a few OpenWin, including 2 templates (AutoSizer, EMET), so would try removing them. One of the first was for Recent Documents (since it doesn't work anyway):

OpenWinClass=<Open/Save Files>,$:explorer.exe

Bingo! Somewhat. That takes launch time down to 0.7s. Besides launching, interface stuff is much better then, but I still feel/see some slowness with new windows, Open/Save... But with Open=*, that stuff is nearly as fast as 3.76, but not quite. I can no longer see slow redrawing (like OE toolbar), but still feel a delay with windows opening (even though it's VERY fast compared to 4.01 with Open=$:explorer).

The slight remaining extra slowness vs 3.76 is about proportional to the launch difference. For reference, IE with 3.76 takes 0.4s (0.37 with Open=* [again, expected with code bypass]; NO other OpenWin settings have an effect), and < 0.2s unsandboxed.

Back to 4.01: I wanted to see if i could get more details for you, so I tried other stuff 12 hours ago. Does the number of OpenWin entries matter? No, tried adding 20 different Dummy windows. Program prefix/group/number of group programs matter? Nope.

Then the last thing I tried was really interesting. :shock: Use * with a prefix (Open=iexplore.exe,*): takes 2.7s! Instead of way faster like global *, it's way slower. :shock: :? So there's that discrepancy, plus the $:explorer.exe slowdown that doesn't exist in 3.76.

On the clean, default laptop, the differences are much smaller, but certainly distinctly measurable with AppTimer. Not sure why the HUGE differences on this system...

Hope these specifics help. Sorry for the long post, just wanted to provide detailed feedback! :) It almost feels like we could get to 3.76's performance now, or perhaps better. :D Nice progress in 1 update!

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun Apr 14, 2013 2:24 pm

Thanks about this writeup, and in the other topic. I'm going to look into a couple of other problems before I go back to these issues, so I'm going to come back later with a more thorough response to your response. I definitely appreciate your help with these issues! Thanks!
tzuk

DR_LaRRY_PEpPeR
Posts: 291
Joined: Wed Jul 04, 2012 6:40 pm
Location: St. Louis area

Post by DR_LaRRY_PEpPeR » Tue Apr 16, 2013 12:15 pm

Yeah, I understand, other real functionality bugs, etc. need more priority than optimizing. :) No problem, and I'm optimistic like I said after these last changes. I appreciate that!

Running for 4 days now, and it looks like the SbieSvc processes are only using maybe 25% of the CPU time as .04! :D (Of course usage pattern, etc. isn't exactly the same, but major reduction there). GuiProxy's memory still looks to be increasing each day (but not msimn.exe so much this time so far)...

shadek
Posts: 24
Joined: Sun Mar 10, 2013 6:06 am

Post by shadek » Wed Apr 17, 2013 3:13 pm

Am I the only one experiencing slight latency when browsing? I.e. clicking a link and a second later the page loads?

bo.elam
Sandboxie Guru
Sandboxie Guru
Posts: 2809
Joined: Wed Apr 22, 2009 9:17 pm

Post by bo.elam » Thu Apr 18, 2013 12:18 pm

shadek wrote:Am I the only one experiencing slight latency when browsing? I.e. clicking a link and a second later the page loads?
I have an issue on each of my computers (XP/W7) while using V4 but none with my browsers. Actually, I feel both of my browsers (IE9/Firefox) feel great running under V4.

Bo

shadek
Posts: 24
Joined: Sun Mar 10, 2013 6:06 am

Post by shadek » Fri Apr 19, 2013 12:16 pm

bo.elam wrote:
shadek wrote:Am I the only one experiencing slight latency when browsing? I.e. clicking a link and a second later the page loads?
I have an issue on each of my computers (XP/W7) while using V4 but none with my browsers. Actually, I feel both of my browsers (IE9/Firefox) feel great running under V4.

Bo
I uninstalled the AV and it's working fine now. Bitdefender AV Free did not like Sandboxie. Someone had to go, and Bitdefender went out the door. :)

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Mon Apr 22, 2013 6:46 am

DR_LaRRY_PEpPeR wrote:Yeah, I understand, other real functionality bugs, etc. need more priority than optimizing. :) No problem, and I'm optimistic like I said after these last changes. I appreciate that!
Thanks. I have to say in the end I didn't get to review your notes prior to releasing version .06. I addressed a bunch of problem and wanted to get that out for review. But I am still planning to look into the points you raised, very soon.
tzuk

Locked

Who is online

Users browsing this forum: No registered users and 1 guest