Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Platform: "I trade, therefore, I AM!"; Theme Song: "Atomic Dog!"
Trading: EMD, 6J, ZB
Posts: 795 since Oct 2009
@bigmike
I left a few Q's as replies, above, please see if there's an answer.
I got instructions from one of the vendors, that said, the first step with a ramdisk was to create an image file, then create or allocate the available or desired additional ram as a ramdisk and associate that ram to that image, then proceed.
this detail is important, as it has something more to do with linkage and save/restore features. did you encounter this issue?
(btw - on a very serious note! congrats on achieving your goals early (under 40's) in life and in moving to where you have already found your peace! We all wish to achieve similar results, but you actually did, so we live vicariously through your experience!)
I also use an ramdisk but i don't know in detail if the windows file cache system exclude the files at the ramdisk. I know that there is a flag (Win32_Volume|DriveType|6) in the internals that mark a volume as ramdisk, but i'm not sure if the cache subsystem take care of that (don't cache anything from that volume!!!!). Has anyone more knowledge about that topic?
Releated to BigMike's solution i've looked at the product and read that this work's as a sector level cache. Due to the lower level interface i think that the file cache is still active.
Platform: "I trade, therefore, I AM!"; Theme Song: "Atomic Dog!"
Trading: EMD, 6J, ZB
Posts: 795 since Oct 2009
thanks
that's a very good recommendation, after more research, the level-2 cache settings are recommended as being alternate storage, such as an SSD or USB drive (although one has to decide whether that's useful)
ASRock includes a completely unlocked version of a ramdisk implementation that provides auto load, auto save, auto shutdown upon using its implementation. Fortunately they're the mfgr of my mobo(s)
one tech support email response made the instructions mentioned previously in this thread seem childishly simplistic. He stated first one establishes an image file; then a ramdisk and associates that image to it; then begins to profile it.
However, in the use of Ninja with its static location files (essential for operation), these solutions require more steps to implement. One would need to junction selected files and folders within the sub-folder "\db" of the ninja files in order to achieve the performance gains that one trader claimed.
Clearly ninja needs serious re-work to achieve Sierra Charts, AT Traders and other package(s) performance standards and reliability. So many work around(s) and maintenance steps, and the gap having been closed on indicators and complex indicator setups; Ninja is in serious challenge from other packages, and hence, threads like these only serve to detract instead of attract.
I can share more details on this journey, but they only serve to retrace the faults and flaws of using the speed up steps. I am sure there is a working methodology, but it has not been as advertised earlier.
@bigmike; using the UIM (unused memory) just below the 4gb threshhold is useful, however, be prepared for the occasional system BSOD or terminal hang/hung screen. I will say that it was noteworthy that you brought that additional speed up approach to our attention
Due to the loyalty to my current RamDisk software producer SuperSpeed i will check the SuperCache product first, if it can improve my overall performance (for my daily working stuff). It has an interesting mirror mode, which creates a 1:1 copy of a volume into the RAM.
Platform: "I trade, therefore, I AM!"; Theme Song: "Atomic Dog!"
Trading: EMD, 6J, ZB
Posts: 795 since Oct 2009
Primo Cache didn't work and crashed my system more than once; operating system. I wasn't able to discern any appreciable improvement in caching or speed of access to the internals of Ninja, hence faster loading and handling times. @bigmike - didn't you move off of Ninja quite sometime ago, and adopted another (superior) or comparable trading / charting system? Perhaps those improvements from that trading platform were able to take advantage of the operating implementation of a super cache.
After some serious work effort and findings, and sloshing through the technical internals and contradictions of what seemingly was a simple endeavour, I will condense my findings here:
A) in the main NinjaTrader directory, I had no success (ninja aborted upon start up) with moving to Ramdisk the sub-directories of:
\\cache
\\templates
\\workspaces
\\tmp
b) in the sub-directory of "\db" the data files, I had success in moving these components to a persistent RamDisk, and verify that they were being preserved during shutdown and restored after start-up (of the operating system)
\NinjaTrader.sdf
\db\cache
\db\data
** note: just having the ".sdf" in ram really sped things up substantially
** note: \workspace -- would be excellent to junction
** note: \templates -- would be double excellent since this is where the hanging occurred
If you have the additional ram to dedicate to a ramdisk, then assigning the entire "\db" file would be easier. This occurs when you have above 8GB overall system ram, because some "\db" sub-directories easily acquire over 12gb themselves, not counting what the GomFolder would be, if you use Gomi stuff. So, a system memory of 16GB would be appropriate, especially when your "\db" is in the 12gb range.
more results to be posted,
one thing so far, is the conclusion that it was all worth the efforts!
Yikes. I'm just guessing it has something to do with your 32-bit OS and <4GB of RAM (if I remember right from your prior posts) and you trying to use the extended area of RAM. None of these apply to me luckily. I have never tried anything like that (using RAM outside the boundary)
Did you look up the blue screen codes and contact the author to see what he said?
I still use Ninja for backtesting, and the point of the cache is really just for Ninja as I don't notice any slow down with any other activities on my system. I would say it has made a considerable improvement, but don't have time right now to do any type of actual benchmarking with it on and off.
Platform: "I trade, therefore, I AM!"; Theme Song: "Atomic Dog!"
Trading: EMD, 6J, ZB
Posts: 795 since Oct 2009
win 7 x64 ultimate
actually the ramdisk lumps in the 4GB memory stick of the 8GB system memory, with all the other un-accessed memory of the 1st 4GB memory stick, and manages it as one block, surprisingly
fortunately I didn't go as far a BSOD, but the resulting system lock up caused the power button to be the only way of recovery and subsequent invokation of Ninja to be avoided, effectively locking up the system
either way to Sunday, these are in the hind-sight mirror a few miles back.
worthy of note, because Ninja is not consistent and has not been in their reference to files and locations within their directories and sub-directories, simply moving enmasse entire sub-components of these directories does not work. Junctions of a higher level directory "in theory" makes access to any lower level directory redirected. Because of the direct references in code, xml and other means within their code, and other templates, processes and schemas, its next to impossible to move the "bin" master directory to ram. By extention, its impossible to move the entire NT directory structure to ram. However, because of indirect access to the "\db" directories, moving that entire master directory works almost without problems.
more findings to be released, I'm 85% there.
one thing I noticed is when launching or changing or initalizing / serializing a workspace, Ninja gets stuck in a repetitive loop without handlers and as such will remain there adnauseum or for hours unless forced shutdown. watching the handlers and processes shows that pattern