| 1 |
Performance Default Overrides |
| 2 |
|
| 3 |
-proc Number of CPU processors used |
| 4 |
-cons Ratio of parsers to processors |
| 5 |
-serv Concurrent parser instances |
| 6 |
-chan Communication channel depth |
| 7 |
-heap Order restoration heap size |
| 8 |
-farm Node allocation buffer length |
| 9 |
-gogc Garbage collection tuning knob |
| 10 |
|
| 11 |
Internal Component Performance |
| 12 |
|
| 13 |
-chunk StreamBlocks |
| 14 |
-split StreamBlocks -> SplitPattern |
| 15 |
-token StreamBlocks -> StreamTokens |
| 16 |
|
| 17 |
Debugging |
| 18 |
|
| 19 |
-debug Display run-time parameter summary |
| 20 |
-empty Flag records with no output |
| 21 |
-ident Print record index numbers |
| 22 |
-stats Show processing time for each record |
| 23 |
-timer Report processing duration and rate |
| 24 |
-trial Optimize -proc value, requires -input |
| 25 |
|
| 26 |
Record Set Indexing |
| 27 |
|
| 28 |
-index Place next record size tag before object |
| 29 |
-turbo Use <NEXT_RECORD_SIZE> values for speed |
| 30 |
|
| 31 |
Documentation |
| 32 |
|
| 33 |
-keys Keyboard navigation shortcuts |
| 34 |
-unix Common Unix commands |
| 35 |
|
| 36 |
Performance Tuning Script |
| 37 |
|
| 38 |
XtractTrials() { |
| 39 |
echo -e "<Trials>" |
| 40 |
for tries in {1..5} |
| 41 |
do |
| 42 |
xtract -debug -input "$1" -proc "$2" -pattern PubmedArticle -element LastName |
| 43 |
done |
| 44 |
echo -e "</Trials>" |
| 45 |
} |
| 46 |
|
| 47 |
for proc in {1..8} |
| 48 |
do |
| 49 |
XtractTrials "carotene.xml" "$proc" | |
| 50 |
xtract -pattern Trials -lbl "$proc" -avg Rate -dev Rate |
| 51 |
done |
| 52 |
|
| 53 |
Processor Titration Results |
| 54 |
|
| 55 |
1 27622 31 |
| 56 |
2 51799 312 |
| 57 |
3 74853 593 |
| 58 |
4 95867 1337 |
| 59 |
5 97171 4019 |
| 60 |
6 93460 2458 |
| 61 |
7 87467 1030 |
| 62 |
8 82448 2651 |
| 63 |
|
| 64 |
MeSH Tree Index Preparation |
| 65 |
|
| 66 |
nquire -dwn ftp://nlmpubs.nlm.nih.gov online/mesh/MESH_FILES/xmlmesh desc2021.zip |
| 67 |
unzip desc2021.zip |
| 68 |
rm desc2021.zip |
| 69 |
|
| 70 |
cat desc2021.xml | |
| 71 |
xtract -pattern DescriptorRecord -element "DescriptorRecord/DescriptorUI" \ |
| 72 |
-sep "," -element TreeNumber > meshtree.txt |
| 73 |
|
| 74 |
Execution Profiling |
| 75 |
|
| 76 |
cat carotene.xml > /dev/null |
| 77 |
./xtract -profile -timer -input carotene.xml -pattern PubmedArticle -element LastName > /dev/null |
| 78 |
go tool pprof --pdf ./cpu.pprof > ~/Desktop/callgraph.pdf |
| 79 |
rm cpu.pprof |