Closed
Bug 522807
Opened 17 years ago
Closed 12 years ago
Create new Talos suite: cold ts for windows
Categories
(Testing :: Talos, defect, P1)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 936617
People
(Reporter: dietrich, Unassigned)
References
Details
Attachments
(3 files, 2 obsolete files)
|
1.65 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.99 KB,
patch
|
Details | Diff | Splinter Review | |
|
383 bytes,
application/octet-stream
|
Details |
see bug 510587. mac and linux are done, but we haven't found a way to reliably emulate a cold startup on windows.
| Reporter | ||
Comment 1•17 years ago
|
||
notes from vlad, via adw at https://wiki.mozilla.org/Firefox/Projects/Startup_Time_Improvements_Notes:
First, if you're on Vista/7, you need to delete the preload cache
data. In your windows dir, ... argh, can't find it atm, but there's a
precache or preload or something, and there should be a firefox.exe-like
dir inside it that you need to delete. Otherwise vista/7 will start
doing its app preload acceleration stuff which will screw over the data
you're trying to collect.
Then, grab something like flushmem:
http://aegisknight.org/2009/04/flushing-disk-cache/ There's another
tool that's more flexible and might be faster, but that one should get
the job done.
Then run the app.
Gotta do these steps before each start to simulate cold start.
- Vlad
| Reporter | ||
Comment 2•17 years ago
|
||
much more from adw here:
http://tinyurl.com/yk7hf3p
| Reporter | ||
Comment 3•17 years ago
|
||
i don't think we need to achieve perfect cold startup emulation. if we can get reliably mostly-cold startup wrt to absolute startup time, that's probably fine.
Comment 4•17 years ago
|
||
Do we have a proof of concept anywhere that this works? Releng won't do integration till we have evidence that things will function.
| Reporter | ||
Comment 5•17 years ago
|
||
see comment #0.
Updated•17 years ago
|
Summary: need a cold ts for windows → Create new Talos suite: cold ts for windows
| Reporter | ||
Comment 6•17 years ago
|
||
consume.exe, a utility in the Windows Server 2003 Resource Kit, might help out here. it can pressure physical memory, cpu, page file, for a user-specified amount of seconds. running just the physical memory option for 5 seconds before timing startup had a massive affect on startup time. i'll play with the options to see if i can get something that puts as at the same level as post-boot startup.
| Reporter | ||
Comment 7•17 years ago
|
||
some notes from testing consume.exe on windows 7:
using "consume.exe -time 15 -physical-memory" before startup, i can reliably cause firefox to startup in 21-23 seconds. very few times was it outside of that range. the only point at which it was higher was when i switched between different versions of the up. eg, after testing a few startups of 3.5, then testing 3.6. those startups were in the 45 - 50 second range.
(i got to 15s by starting from 5s and increasing the number until i hit the ceiling of startup time (so basically it takes 15s for consume.exe to fill my physical ram up to 100%).
i did about 3 runs of each version, and the startup times across 3.5, 3.6 and 3.7 did not noticeably differ when testing this way.
interestingly, "consume.exe -time 15 -kernel-pool" reliably started up the app in ~7s.
the other options did not have a noticeable effect.
note that prefetching is turned *off* for the duration:
* disabling prefetch on winxp: http://www.tweakxp.com/article37028.aspx
* disabling superfetch on vista/win7: http://www.addictivetips.com/windows-tips/disable-windows-7-superfetch/
| Reporter | ||
Comment 8•17 years ago
|
||
link to the w2k3 server resource kit for consume.exe: https://developer.mozilla.org/en/QA/Stress_Testing
| Reporter | ||
Comment 9•17 years ago
|
||
wip. currently freezing whole OS unrecoverably. yay. sequence works outside of talos, so the problem is probably a mispythonunciation on my part.
Assignee: nobody → dietrich
Status: NEW → ASSIGNED
| Reporter | ||
Comment 10•17 years ago
|
||
Attachment #410914 -
Attachment is obsolete: true
| Reporter | ||
Comment 11•17 years ago
|
||
| Reporter | ||
Comment 12•17 years ago
|
||
Alice, the attached patch works in my environment. I tested consume.exe standalone (ie: outside of all the other resource kit files) and it works fine. Just needs to be put somewhere in the path of Talos.
Comment 13•16 years ago
|
||
Dietrich, does this require the registry changes mentioned in previous comments? Is this just a standalone script that talos can run?
Also, has there been any testing done on vista?
| Reporter | ||
Comment 14•16 years ago
|
||
Per Taras' post, mounting a drive containing Firefox might be a better approach:
http://blog.mozilla.com/tglek/2010/01/04/windows-7-startup-exploration/
I'm going to look into whether drives mounted via subst are treated the same, with respect to caching, etc:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/subst.mspx?mfr=true
| Reporter | ||
Updated•16 years ago
|
Assignee: dietrich → nobody
Comment 16•16 years ago
|
||
Given horrible windows startup issue(bug 593614) that we only noticed recently, measuring cold startup should be given a high priority.
We need to setup a windows box that reboots and then launches firefox soon after startup. I'd also like to have windows capture an xperf log while doing that.
logman start "NT Kernel Logger" -o browser.etl -p "Windows Kernel Trace" 0x237f
start firefox
logman stop "NT Kernel Logger" -ets
I'm not sure if it's viable to reboot windows on every commit. It would be good enough have a cold startup test box cycling nightly.
Priority: -- → P1
Comment 17•16 years ago
|
||
Talos boxes are rebooted after every test run.
Comment 18•16 years ago
|
||
Usage
siggi.exe d:\ l: "powershell startup_script.ps1"
Where d:\ is the drive that that firefox binaries are on, l: is the new virtual drive that will be assigned to the snapshot drive and the last argument is the command to run.
This uses the windows backup service to create a brand new view of the harddrive which means that existing windows caches wont be used =D
Attachment #411865 -
Attachment is obsolete: true
Comment 19•16 years ago
|
||
powershell script to time startup
Comment 20•16 years ago
|
||
The upside of this approach is that this gets us the same effect as unmount/mount on unix-like systems(ie application binaries are not in OS caches). The downside is that firefox has to be run as administrator due to windows UAC sucking and not being able to drop privileges.
Comment 21•16 years ago
|
||
Which versions of windows will this patch work on?
Do we need to have a d drive set up for this to work?
Comment 22•16 years ago
|
||
(In reply to comment #21)
> Which versions of windows will this patch work on?
>
> Do we need to have a d drive set up for this to work?
works on xp and vista + newer, just has to recompiled separately for xp or vista+newer.
Comment 23•14 years ago
|
||
Is this still wanted? We do a reboot before running the test. I would like to get some action items here or close the bug.
Comment 24•14 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #23)
> Is this still wanted? We do a reboot before running the test. I would like
> to get some action items here or close the bug.
This would be nice to have but for now I think our time is better spent on moving bug 770317 to a useful stage.
Comment 25•12 years ago
|
||
Roberto- is this the same as you have?
Blocks: 1040081
Flags: needinfo?(rvitillo)
Comment 27•12 years ago
|
||
Roberto, I was not very clear! Should this be a duplicate of bug 936617?
Flags: needinfo?(rvitillo)
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•