0.84: Update catalogue from files causes heavy disk access
Posted: Sun Mar 05, 2017 7:56 pm
XnView: MP 0.84
OS: Windows - 32 bit
When updating the catalogue from files, heaps of disk accesses are performed. Catalogue database resides on a hard disk while the image files are on a SDD. I hear heavy hard disk activity so I suspect the catalogue updates are responsible for the many disk accesses. Processor load is very low (<3%).
Effect: Updating of catalogue takes longer than needed (5 min for 1.000 files). Many disk access my give the user the feeling that something is going wrong.
To reproduce:
1. Create a directory structure with 10 subfolders with 100 image files in each subfolder as described in topic Search function - possible memory leak.
2. Update XnView's catalogue from the image files (View ยป Update catalog from files).
Actual behaviour (bug): While updating there is heavy disk access which is generated by the catalogue updates
Windows Task Manager:
I/O (Read): 6.022
I/O (Write): 18.020
Expected behaviour: Sure eneough there must be disk accesses to update the catalog, but there should be much less disk activity. I don't know the technical details behind XnView, but less frequent database commits (e.g. every 100 image files, only), might help here.
3. Repeat step 2.)
Actual behaviour (bug): Although nothing has changed, there is again heavy disk access.
Exptected behaviour: When running "Update catalog from files" for a second time on the same images files, there should be much less disk activity.
Note: I notice the many disk accesses because my hard disk of my PC is slow and fairly loud.
OS: Windows - 32 bit
When updating the catalogue from files, heaps of disk accesses are performed. Catalogue database resides on a hard disk while the image files are on a SDD. I hear heavy hard disk activity so I suspect the catalogue updates are responsible for the many disk accesses. Processor load is very low (<3%).
Effect: Updating of catalogue takes longer than needed (5 min for 1.000 files). Many disk access my give the user the feeling that something is going wrong.
To reproduce:
1. Create a directory structure with 10 subfolders with 100 image files in each subfolder as described in topic Search function - possible memory leak.
2. Update XnView's catalogue from the image files (View ยป Update catalog from files).
Actual behaviour (bug): While updating there is heavy disk access which is generated by the catalogue updates

Windows Task Manager:
I/O (Read): 6.022
I/O (Write): 18.020
Expected behaviour: Sure eneough there must be disk accesses to update the catalog, but there should be much less disk activity. I don't know the technical details behind XnView, but less frequent database commits (e.g. every 100 image files, only), might help here.
3. Repeat step 2.)
Actual behaviour (bug): Although nothing has changed, there is again heavy disk access.

Exptected behaviour: When running "Update catalog from files" for a second time on the same images files, there should be much less disk activity.
Note: I notice the many disk accesses because my hard disk of my PC is slow and fairly loud.