Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Console subsystem affects client thread's performance - why??


21 Oct 2013   #1

Windows 7 Home Premium 64
 
 
Console subsystem affects client thread's performance - why??

Anyone have any knowledge about output calls to the Console affecting the performance of a client thread's code in between the output calls?

More generally, can you explain if the Console interacts with the client thread? I believe the console is controlled by an instance of csrss.exe, in a different thread. From some event profiling, it appears that the client thread's core has a reduced throughput in handling writes to the data cache.

Here are some details...
I have been running some CPU timing tests, but programs are sometimes running slower than I would have expected. For instance, a large memcpy() takes about 3 cycles per 8 bytes transferred, yet the actual code stores 8 bytes per cycle. memset() takes about 2 cycles per store.

I have also been timing some programs I wrote myself. The timing program will run the target code many times, then print the time and some other information, then go back and repeat all this several times. I noticed that if I called the timing program with an option to not print that other information, just the running time, the running times were remarkably faster!

So those extra outputs through the console were somehow affecting the speed at which subsequent code, with no I/O or system calls, ran.

My timing program sets affinity to a sincle core and elevates itself to High base priority and Realtime thread priority, to give it 100% access to that core.

Years ago I had a similar experience with XP 64-bit. In that case, I found that I got better running times if I would sleep for a few seconds after the last console output before running the next timing test.



My System SpecsSystem Spec
.

Reply

 Console subsystem affects client thread's performance - why??




Thread Tools



Similar help and support threads for2: Console subsystem affects client thread's performance - why??
Thread Forum
16 bit MS-DOS Subsystem pop-up General Discussion
16 bit MS-DOS Subsystem pop-up General Discussion
Spooler subSystem app has stopped working Drivers
Graphics subsystem resources are over-utilized BSOD Help and Support
InfoWorld Article on Win 7 Multicore/thread Performance News

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:49 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33