Hi All
I'm facing an issue (very slow execution) in reading and writing to a TDMS file. It's nearly taking around 23-30 minutes for a file of 108 MB size and index file size of 6 MB.
PC details:
It's an NI PXI-e controller in chassis with 32 bit Windows 7 OS with 4 GB RAM. This OS was installed nearly 5 years ago (not reinstalled OS or machine not serviced meanwhile). PC is having NI TestStand 2010 SP1 and LabVIEW 2011 SP1.
Observation 1:
The same operation works relatively faster in other laptops with the same input file. It takes around ~1.5 to 3.3 minutes (tested with both 32 bit Windows7 OS & 4GB RAM and a laptop with 64 bit Windows7 OS +8GB RAM).
Observation 2:
I've checked the slow PC's hard disk C drive (Check disk using Right click on C drive>>Properties>>Tools>>Check error. It says no errors found.
Also, around 100GB space is available in C drive.
Observation 3:
However, there are many other similar TDMS files are stored in this PC with their respective index files (total around 8 GB). This is not the case in other laptops where it's found working faster. I don't know if this has any linkage but I tried the operation by deleting the other files also. But it's the same.
Observation 4:
When I monitored the task manager during the VI run, it shows red lines in the charts under CPU performance tab. I've also captured the screenshot where the CPU shows red without running any operation. CPU is not 100% occupied and memory looks available. but show red lines. This definitely appear that something going wrong with CPU.
In the other laptops, there are no red lines with CPU performance.
Observation 5:
TDMS file operation inside the VI uses FOR loop with parallelism using CPU affinity (No. of logical processors =8) in this PC. I'm suspecting if CPU is having issues, is this having any issue with trying parallelism?
any bad sectors in drive or CPU logical processors not really working as affinity says?
I've provided screenshots and VI for reference. Please provide me your suggestions or ideas to check this CPU issue.
THANK YOU.
-Krishna