You are viewing limited content. For full access, please sign in.

Question

Question

Limit CPU usage with QRCmd

asked on August 8, 2016

Hi,

Is there any way to limit the amount of CPUs that are utilised when running the quick reindex utility? We're trying to use it to recreate a search catalog but finding it is maxing out CPU resource.

If we use the -vn parameter to limit the reindex to particular volumes, can we reindex multiple volumes at once? When we specify a volume name should/can this be the name of the physical volume or logical volume?
 

Thanks,

Nigel.

 

0 0

Replies

replied on August 9, 2016 Show version history

Hi,

 

You can assign processors to any applications, including QRCmd. The easiest way to do this is to use Process Explorer: start QRCmd; open Process Explorer; in Process Explorer, right click the process name (QRCmd.exe); "Set Affinity..."; choose the processors you want QRCmd to use. Alternatively, you can use PsExec, which is a command line tool. You might want to use PsExec when writing a script to do re-index. Both Process Explorer and PsExec are included in SystemInternals suite, which can be downloaded on https://technet.microsoft.com/en-us/sysinternals/bb842062.aspx

 

QRCmd can index multiple volumes at once. To do this, use multiple -vn options, one for each volume. It is like:

-vn volume1 -vn volume2

 

QRCmd accepts both physical volumes and logical volumes for volume name option.

2 0
replied on August 10, 2016

This is great,

Just got 2 questions.

1) I have 4 CPUs on this machine, so I end up with 5 processes. The QRCMD.exe and 4 Text Providers.exe If I set affinity on QRCMD will only trigger one Text Provider right?

2) I have a total of 96 volumes to OCR, if I do this in batches of 10 volumes per run, can I then merge the idx files? How can this be done?

Thank you
Gian

0 0
replied on August 10, 2016

QRCMD does not OCR. TextProvider is used to extract text from electronic documents that don't already have text pages.

0 0
replied on August 10, 2016

As Miruna said, TextProvider is for text extracting, but not OCR.

 

The number of TextProvider processes is not related the to number of processors assigned to a given TextProvider process or LFFTS process. To limit CPU usage, you would like to limit the number of processors for the related processes. To do this, you can either set affinity to LFFTS and each TextProvider process in ProcessExplorer (you can assign a single processor to multiple processes); or use PsExec to start LFFTS, and the same processors will be assigned to TextProvider processes.

 

TPCThreadNumber setting is for the number of TextProvider processes. And it is not recommended to change the value.

 

 

1 0
replied on August 11, 2016

This is great info.

I noticed that when I start the QRCMD I get 4 TextProvider64 processes that use all the CPU available. But I set afinity to QRCMD and now I get the 4 TextProviders but they use little CPU

 

Thank you!

0 0
replied on August 9, 2016

I found a file, QRStarter.xml that has 

            <performancemonitor>
              <enabled>1</enabled>
            </performancemonitor>

 

Maybe somebody from LF can confirm if this can be used to control the CPU usage?
 

0 0
replied on August 9, 2016

Hi,

 

No, this doesn't affect CPU. This is an option to enable or disable performance counters in QRCmd. In the configuration file, 1 means enabled. It is not recommended to modify this file, and incorrect configuration can make QRCmd malfunction.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.