Saturday, September 12, 2009

Mac OSX Snow leopard better performance

I have upgraded my Macbook to Snow Leopard this weekend and indeed experienced better performance. I have bumped into an interesting article which explains why : (follow link )
To make short story shorter Mac maps 32bit processes to two 4GB address spaces one for user mode and one for kernel mode. As a result any kernel mode system call will require a TLB flush.
Windows by limiting user address space to 2GB and kernel address space to 2GB do not suffer from this problem (but suffer from much lower memory limit). Snow leopard is full 64 bit which solves this issue. User mode and kernel mode address space share the same TLB

Thursday, September 3, 2009

A few comments on my previous post

When you are able to RDP to console session. Most of the times you will be able to connect to the process if you will give it the pid from the windows task manager.
jps which lists only java processes will not work. However jconsole -p will. So there are cases where this technique is not required.

However there are cases when you are not able to connect to the console session. In that case enabling interaction with console option will not help but you can still communicate with files.
Just write a batch file and execute it with cmd.exe -C
you can redirect your input and output to files so you will be still able to communicate with the shell