the evn show Posted March 10, 2009 Share Posted March 10, 2009 Why use something quick and easy like notepad? Every window after the first isn't a big deal - it's orders of magnitude less memory/cpu usage because it's sharing code that's already loaded. To do something harder open several hundred instances of firefox and navigate to different sites. While the core code is still shared, you'll have unique data to draw for every window. That being said, it is impressive that the underlying memory management and GUI subsystems are robust enough to handle this meany open applications. It's nothing of the sort. A good memory benchmark would be something like performing a traveling salesman over a multi-gigabyte data set and displaying the results as text on dozens (yes, only dozens) of rapidly scrolling text views. This does absolutely nothing to stress the memory management or graphics systems. You could cause more stress on both just by tinkering in Quartz Composer or Core Image Funhouse for 20 minutes. Can someone tell me how to/or make a script/automation that will open 10,000 textedit windows? display dialog "How many Text Edit windows?" default answer "10" set limit to text returned of result tell application "TextEdit" launch repeat limit times make new document end repeat end tell Link to comment Share on other sites More sharing options...
Reacon Posted March 10, 2009 Share Posted March 10, 2009 i'll be the first one to slap you :p :laugh: oh and ubuntu can do it better :) And so can Windows :D Link to comment Share on other sites More sharing options...
LittleNeutrino Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 6004 anyone. on XP Link to comment Share on other sites More sharing options...
afzkl Posted March 10, 2009 Share Posted March 10, 2009 To you guys who wants to test an needs a script for Windows. Here is a easy one: Dim open, WshShellset open = CreateObject("WScript.Shell") numWindows = 1000 'Number of windows to open timeBe = 200 'Time between each open window in milliseconds For i = 1 To numWindows open.Run("notepad.exe") WScript.sleep timeBe Next Copy and save as whateveryouwant.vbs Link to comment Share on other sites More sharing options...
Yusuf M. Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 How do I make it stop? Ahhhhhhh! :wacko: Link to comment Share on other sites More sharing options...
techbeck Posted March 10, 2009 Share Posted March 10, 2009 If you want to impress someone, then open 1000 Photoshop windows on a Mac. TextEdit windows dont take up a lot of memory and are low on system resources. I can open 1000+ notepad windows on a PC and it would work the same way. Link to comment Share on other sites More sharing options...
giga Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 If you want to impress someone, then open 1000 Photoshop windows on a Mac. TextEdit windows dont take up a lot of memory and are low on system resources. I can open 1000+ notepad windows on a PC and it would work the same way. Opening numerous [empty] Photoshop documents would be more of a stability test on Photoshop than the operating system. Link to comment Share on other sites More sharing options...
afzkl Posted March 10, 2009 Share Posted March 10, 2009 How do I make it stop? Ahhhhhhh! :wacko: Hahaha! That's your problem man ;) Eventually it will stop after 1000 windows. Link to comment Share on other sites More sharing options...
rayjin Posted March 10, 2009 Share Posted March 10, 2009 Hahah.. my system stop spawning notepad.exe after about 177 on XP with 1GB RAM.. but system still runs fine. :p Link to comment Share on other sites More sharing options...
chiwou Posted March 10, 2009 Share Posted March 10, 2009 well I can open only 8 psd (+20layers) at a time (because of the openGL) but I've got only 1GB RAM and a 256MB GC ;) Link to comment Share on other sites More sharing options...
Andre S. Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 Just tried running the following C# program which opens 1000 notepad windows, in Windows Vista, with 2GB of ram : namespace CSharpTest { class Program { static void Main(string[] args) { string path = "C:\\Windows\\System32\\notepad.exe"; for (int i = 0; i < 1000; i++) { System.Diagnostics.Process.Start(path); } } } } The system went unresponsive for a minute, then Aero was disabled and a warning appeared that it had been disabled. After maybe 2 minutes, the interface became responsive again, and according to Windows there were 988 notepad windows open (weird). Each notepad window was usable. I hit printscreen and opened Paint.NET, but it crashed. I tried to open MSPaint, but it gave an error message and quit. Then the taskbar became unresponsive again, so I had no way of closing the whole group together. I couldn't close them individually either because the task manager was messed up. I ended up CTRL-ALT-DELeting out and restarting the system. I'm a bit disappointed. Link to comment Share on other sites More sharing options...
the evn show Posted March 10, 2009 Share Posted March 10, 2009 well I can open only 8 psd (+20layers) at a time (because of the openGL) but I've got only 1GB RAM and a 256MB GC ;) Number of layer's open isn't a very useful figure. Look at the size of document in memory. I've got a 6 layer document open that's over 3gb (billboard resolution images). I've also got a 50-ish layer document that's under 300mb (screen resolution images/vectors/text). EDIT: also, photoshops use of the graphics accelerator is absolutely trivial when compared with the capabilities of Quartz or WDM. Link to comment Share on other sites More sharing options...
sundayx Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 I didn't go through the thread but have you tried pressing expose? Link to comment Share on other sites More sharing options...
CPressland Posted March 10, 2009 Author Share Posted March 10, 2009 start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe start notepad.exe && start notepad.exe ... and so forth. Tested with Windows Vista SP1 32-bit on a P4 2.8GHz/1GB RAM/Intel Graphics. I got up to ~800 total processes before I stopped it. Tested on Windows 7, = BSOD after 60 processes :D I didn't go through the thread but have you tried pressing expose? Some guy did, there is a screenshot back a little. Link to comment Share on other sites More sharing options...
techbeck Posted March 10, 2009 Share Posted March 10, 2009 Opening numerous [empty] Photoshop documents would be more of a stability test on Photoshop than the operating system. Photoshop takes up a lot more memory that a simple text screen like notepad. Loading 1000 Photoshop will use a lot of system memory and I would be curious to see how the system performs then. Link to comment Share on other sites More sharing options...
giga Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 Photoshop takes up a lot more memory that a simple text screen like notepad. Loading 1000 Photoshop will use a lot of system memory and I would be curious to see how the system performs then. Photoshop itself consumes more memory than a text editor, but continual empty Photoshop documents do not. Upon launch, it used 100mb of ram. And after 50 new empty Photoshop documents (default size): Link to comment Share on other sites More sharing options...
Karl L. Posted March 10, 2009 Share Posted March 10, 2009 Here is a simple batch script i wrote to open 10,000 instances of Notepad. Copy the code and save it as <something>.bat <code> @echo off echo Mission: Open 10000 instances of notepad - and survive. echo. pause set i=0; :loop if %i%==10000 goto end set /a i+=1 start notepad.exe goto loop :end echo Status: Achieved echo %i% instances of notepad are running echo. echo Press any key to exit . . . pause>nul exit <\code> Hopefully your system can survive. Mine is a 2.4GHz Core 2 Duo with 4GB of RAM running the Windows 7 beta and it froze after running this script for about 5 minutes. Link to comment Share on other sites More sharing options...
Yusuf M. Veteran Posted March 10, 2009 Veteran Share Posted March 10, 2009 Wow, I had to log off to make it stop. The fans in my laptop went into overdrive. I've never heard my laptop sound like a small jet engine, seriously. In Windows Vista, you can't see the animation for opening a program after 90-100 instances of notepad. Link to comment Share on other sites More sharing options...
CPressland Posted March 11, 2009 Author Share Posted March 11, 2009 Well I guess this puts this to rest then. Windows XP can open millions of sessions of notepad.exe Windows Vista can barely open 100 before getting slow and bulkey Windows 7 just plain BSODs Mac OS X is 1000 the record so far, maybe it's time for somebody with a Mac Pro to do an apple script for 10,000? Link to comment Share on other sites More sharing options...
Mercellus Posted March 11, 2009 Share Posted March 11, 2009 For the record, we should state whether or not these tests are run on Vista RTM, SP1, or SP2, along with architecture. The reason why I believe this is important is because GDI limits were raised in x86 SP1 (havent checked SP2) and x64 has an even higher ceiling. Link to comment Share on other sites More sharing options...
PaulCabby Posted March 11, 2009 Share Posted March 11, 2009 Well I guess this puts this to rest then.Windows XP can open millions of sessions of notepad.exe Windows Vista can barely open 100 before getting slow and bulkey Windows 7 just plain BSODs Mac OS X is 1000 the record so far, maybe it's time for somebody with a Mac Pro to do an apple script for 10,000? Just got Windows 7 (build 7000) to open and run 1000 notepad.exe sessions. :) Link to comment Share on other sites More sharing options...
CPressland Posted March 11, 2009 Author Share Posted March 11, 2009 Screenshot please ;) I was running XP on my MacBook and managed to get 190 open before windows citied, OUT OF MEMORY, 190 using 2GB of RAM, thats stupid :D. Can somebody post up an applescript for doing this on OS X, I wana see how far I can push my MacBook, we'll try for 5000 this time. Link to comment Share on other sites More sharing options...
Srugie Veteran Posted March 11, 2009 Veteran Share Posted March 11, 2009 You must have been pretty bored. Link to comment Share on other sites More sharing options...
frogger Posted March 11, 2009 Share Posted March 11, 2009 i'll try it sometime on server 2008 with 6gigs of ram, i bet i can hit 1000 easy. Link to comment Share on other sites More sharing options...
giga Veteran Posted March 11, 2009 Veteran Share Posted March 11, 2009 Screenshot please ;) I was running XP on my MacBook and managed to get 190 open before windows citied, OUT OF MEMORY, 190 using 2GB of RAM, thats stupid :D . Can somebody post up an applescript for doing this on OS X, I wana see how far I can push my MacBook, we'll try for 5000 this time. Look up. Link to comment Share on other sites More sharing options...
Recommended Posts