It appears this post was left in a"to be continued" state for some time so I decided to "explore" this way in order to make some personal tests.
I set-up 2 test systems with very differents hardware in order to test NKI vs XP-Compressed file system performances
I used Conquest 1.4.15 and MySQL 5 over a NTFS file-system.
- The firs one is an Intel i5 CPU (Mid-Range Dualcore cpu @ 3.2 GHz) and Windows XP 32 bit
- The second one is a set-top-box based on Intel Atom 330 (Dual Core cpu @ 1,6 GHz) with Windows XP 32 bit (my "portable" PACS
In both cases I alternated NKI compression and File-System compression to store About 0,5 Tb of CT and MRI Dicom images. then tested the system response.
NKI format compress the bitmap image and leave the Dicom header uncompressed so in theory by using uncompressed DICOM images associated to a compressed file system should be the best combination.
The results unfortunately was differents but we need to make some considerations.
One 512x512 CT Image takes about 0,5 Mbyte of disk space when uncompressed.
The same image compressed in NKI format take about 0,2 ... 0,25 Mbyte.
The Windows-XP compressed file system should need about 0,17 Mbyte to compress the same uncompressed image (the file system compress both image and dicom header).
Considering 0,5 Tb of disk space this correspond to about:
- 1 Million of uncompressed dicom images
- 2 ... 2.5 Millions of NKI compressed dicom images
- 3 Millions of XP-FS compressed Dicom images
With theese numbers the most important thing is the time needed to access the files by the file system.
Well my tests has showed a TOTAL inefficiency of the XP-FS during disk access. This file system needs to compress/decompress the files "on the fly" at every access and this has to be transparent for the system, so this process can't take too much CPU cycles to avoid to slow-down the other processes.
This situation is more evident over the Atom CPU where the CPU power isn't very high and this caused some timeouts during accessing to large images series (by doing Dicom queryes involving more than 3.000 images).
Better results by using a good CPU like the i5 @ 3.2 GHz but by increasing the amount of compressed files the performances degrades too much to be used over large disks set.
By using NKI compression (level compression =n4) the result was a more reliable system on both hardware.
Obviously over the Atom system the transfer speed is less than storing uncompressed DICOM images but this system was intended to be used as "transportabile little PACS" so the performances wasn't a priority.
By using the same settings over the i5 system the CPU power was enought to make the "on the fly" compression/decompression of the NKI images absolutely transparent and without take more time that archiving uncompressed DICOM images.
My personal opinion after theese tests is to AVOID the use the XP-File-System compression unless for very small amount of images and choose to save the images in NKI format (n=1 for slow systems).
I hope theese tests could help someone and finally sorry for my bad english !
I made some tests by using the new 1.4.16 release with Jpeg-2000 support enabled as losless compression.
Well... over the Atom system the performances was too much slower to be used for large amount of data so the tests was interrupted.
Better results over the i5 CPU where by using the Jpeg-2000 algorythm showed a double time compared to store the same study in NKI format but increasing the compression ratio by 25% than NKI format.
Perhaps by using i7 or other high-end CPU the compression time could be reduced by a significant way but I suggest to use JPEG-2000 compression level over slow network connection transfers (10 Mbit or less) and leave the NKI compression to have the best system efficiency inside a 100/1000 Mbit/s. LAN.
Davide.