Quant development: Is it possible to achieve Java zero GC garbage collection? How?

(Last Updated On: October 14, 2011)
Learn the Secret

Get  our 2 Free Books

Get these now which land directly to their inbox.
Invalid email address

Quant development: Is it possible to achieve Java zero GC garbage collection? How?

Zero GC is of course possible if you allocate objects only on start up, do not use 3rd party libraries and use JNI in case if you need to replace some “standard” libraries which are for sure allocates garbage (I think all Sun’s native libraries (io, nio) allocate that garbage). Agree
GC is not the only source of unpredictable latencies in Java application. There are other ones (at least in non RT OSes like regular Linux):
A. Default  process scheduler which favors RT, SCHED_FIFO, SCHED_RR and not SCHED_OTHER (which is default for Java)B. Occasional Hardware interrupts that of course have a higher priority than you precious Java threadC. Intel HT creates  excessive cache contentionB. Some BIOS default features which needs to be disabled: Processor C-StatesD. Java process page faults (occasional)E. Lack of thread affinity support in Java which results in a poor cache reuse (thread can be rescheduled to another CPU core)
It is just for starter. I am not even talking about Net and File I/O yet.

This was a comment from Vladimir Rodionov

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
This entry was posted in Quant Development and tagged , , , , on by .

About caustic

Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I do over typing. Maybe one day I can get a full time copy editor to help out. Do note I prefer videos as they are much easier to produce so check out my many video at youtube.com/quantlabs