Got bored, Come watch OS X own all :D


Recommended Posts

Why use something quick and easy like notepad?

post-248102-1210553315_thumb.jpg

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

To you guys who wants to test an needs a script for Windows. Here is a easy one:

Dim open, WshShell

set 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

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.

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.

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.

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.

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.

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):

Picture%202-1236715033.png

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.

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.

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?

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.

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.

:)

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.

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.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Couple years ago I got a brand new 4TB Samsung 990 Pro for $250 during Black Friday
    • Thanks
    • Can confirm, I've built stuff for others and no complaints using their products.
    • Yes I agree, it's annoying. You can now miss tabs unless you point low enough.
    • Sysinternals Suite 2026.17.06 by Razvan Serea The Sysinternals Suite is a comprehensive package of advanced Windows utilities created by Mark Russinovich, who launched the Sysinternals website in 1996 to share his system tools and technical resources. This suite combines a wide range of troubleshooting and diagnostic tools, including Process Explorer, Process Monitor, Sysmon, Autoruns, ProcDump, the PsTools collection, and many others. It provides everything IT professionals and developers need to manage, monitor, and troubleshoot Windows systems and applications. The Suite bundles all of the core troubleshooting utilities along with their help files. Non-troubleshooting extras—such as the BSOD Screen Saver or NotMyFault—are excluded. In addition to the well-known tools, it also includes AccessChk, Autologon, Ctrl2Cap, DiskView, Disk Usage (DU), LogonSessions, PageDefrag, PsLogList, PsPasswd, RegMon, RootkitRevealer, TCPView, VMMap, ZoomIt, and more. Sysinternals Suite 2026.17.06 changelog: Autoruns v14.3 - This update to Autoruns, a utility for monitoring startup items, adds bug fixes and improves the command-line application autorunsc. ZoomIt v12.1 - This update to ZoomIt, a screen magnification and annotation tool, adds image backgrounds, webcam background blur and microphone noise cancellation support. Coreinfo v4.01 - This update to Coreinfo, a tool that reports processor, socket, NUMA memory, and cache topology of a system, as well as processor features supported, adds support for new processor features. DebugView v5.02 - This update to DebugView, a tool for displaying both kernel-mode and Win32 debug output, adds Ctrl-Shift-A support for selecting all output, and agent skills support for the CLI utility. LiveKd v5.64 - This update to LiveKd, a utility that allows running the kernel debugger on a live system, fixes a debugging privileges issue. ProcDump 3.5.2 for Linux - This update to ProcDump for Linux, a tool for capturing process dumps, adds .NET counters and a custom core dumper. Process Monitor v4.04 - This update to Process Monitor, a utility for observing real-time file system, Registry, and process or thread activity, adds some bug fixes Sysmon v15.21 - This update to Sysmon, an advanced host security monitoring tool, adds some bug fixes. Download: Sysinternals Suite 2026.17.06 | 168.0 MB (Freeware) Download: Sysinternals Suite for ARM64 | 15.4 MB Link: Sysinternals Suite Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      eurospharma62 earned a badge
      One Month Later
    • Week One Done
      With What earned a badge
      Week One Done
    • Week One Done
      Harris Gilbert earned a badge
      Week One Done
    • One Month Later
      Vincian earned a badge
      One Month Later
    • First Post
      Jocimo earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      542
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      85
    4. 4
      ATLien_0
      64
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!