Thank you stating this so well. I suspected it was something along
those lines I just couldn't verbalize it.
Oddly enough, our Windows based Track-It server displays the same
behavior when searching strings. On the other hand, it's not odd. All
computers page to cache right?
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Amos
Sent: Tuesday, June 14, 2011 11:22 AM
Subject: Re: FNDSTRPDM is slow
The behaviour that you are seeing, slow the first time a file or group
of files are accessed, is consistent with OS/400 behaviour. I suspect
that the slowness is related to the LRU paging algorithm used by OS/400.
Stated another way, if the file indices and the related contents are not
used for an extended time, they get paged out of the system cash. Then,
the next time you do a string search, both the indices an the file
contents must be read back (paged) into cash. For large files, this
paging may take a significant amount of time.
The only way that I've found to improve the performance in this
situation is to periodically access the file to keep it paged into
memory. This is not a good idea on busy systems as keeping the file
paged into cash will slow down other processes.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l