Bug 59562

Summary: new-run-webkit-tests should disable/enable spindump on mac
Product: WebKit Reporter: Stephanie Lewis <slewis>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dpranke, slewis
Priority: P2 Keywords: NRWT
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.6   
Bug Depends on:    
Bug Blocks: 64491    

Stephanie Lewis
Reported 2011-04-26 16:59:59 PDT
new-run-webkit-tests should disable/enable spindump on mac. It can hog the available memory and cpu to disable: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump_symbolicator.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump_starter.plist to enable: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump_symbolicator.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump_starter.plist
Attachments
Dirk Pranke
Comment 1 2012-06-18 18:08:37 PDT
hm. Sorry for not looking at this before now ... This is a problematic idea for me, since sudo would prompt for passwords and hence presumably cause problems on the bots, unless the commands were specially treated in sudoers. Unless there's another way to solve this, the best I can come up with is to add a --disable-spindump flag that would do this only on request, but I'm not sure if that's really better than just doing this yourself in a wrapper script around new-run-webkit-tests. WDYT?
Stephanie Lewis
Comment 2 2012-06-19 15:23:43 PDT
For the bots it would probably just be easier for each bot to disable spindump permanently (there's a good chance we already do this on the mac bots). I was thinking more of people running the tests on their machines. Spindump, when it gets going, can dramatically reduce performance particularly when symbolicating custom builds. I haven' t tested it recently so I should get some numbers on cpu usage on a recent build. I don't like the idea of a wrapper, it seems like it would add an extra layer of complexity for a small benefit.
Dirk Pranke
Comment 3 2012-06-19 15:45:40 PDT
maybe we should add a separate script for enabling/disabling spindump so people can run it when they want?
Dirk Pranke
Comment 4 2012-07-13 17:10:35 PDT
I'm going to close this as WONTFIX, since I don't see a good way of doing this without prompting for passwords, and I don't think that's a good idea. Let me know if you disagree.
Note You need to log in before you can comment on or make changes to this bug.