€•×ÒŒsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ/translations/zh_CN/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/zh_TW/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/it_IT/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/ja_JP/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/ko_KR/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/pt_BR/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/sp_SP/RCU/torture”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ9/var/lib/git/docbuild/linux/Documentation/RCU/torture.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒRCU Torture Test Operation”h]”hŒRCU Torture Test Operation”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒCONFIG_RCU_TORTURE_TEST”h]”hŒCONFIG_RCU_TORTURE_TEST”…”�”}”(hhàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÝh²hh³hÇh´K ubhŒ paragraph”“”)�”}”(hX‡The CONFIG_RCU_TORTURE_TEST config option is available for all RCU implementations. It creates an rcutorture kernel module that can be loaded to run a torture test. The test periodically outputs status messages via printk(), which can be examined via the dmesg command (perhaps grepping for "torture"). The test is started when the module is loaded, and stops when the module is unloaded.”h]”hX‹The CONFIG_RCU_TORTURE_TEST config option is available for all RCU implementations. It creates an rcutorture kernel module that can be loaded to run a torture test. The test periodically outputs status messages via printk(), which can be examined via the dmesg command (perhaps grepping for “tortureâ€�). The test is started when the module is loaded, and stops when the module is unloaded.”…”�”}”(hhðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hhÝh²hubhï)�”}”(hŒcModule parameters are prefixed by "rcutorture." in Documentation/admin-guide/kernel-parameters.txt.”h]”hŒgModule parameters are prefixed by “rcutorture.â€� in Documentation/admin-guide/kernel-parameters.txt.”…”�”}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubeh}”(h]”Œconfig-rcu-torture-test”ah ]”h"]”Œconfig_rcu_torture_test”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒOutput”h]”hŒOutput”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´Kubhï)�”}”(hŒ%The statistics output is as follows::”h]”hŒ$The statistics output is as follows:”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khjh²hubhŒ literal_block”“”)�”}”(hXsrcu-torture:--- Start of test: nreaders=16 nfakewriters=4 stat_interval=30 verbose=0 test_no_idle_hz=1 shuffle_interval=3 stutter=5 irqreader=1 fqs_duration=0 fqs_holdoff=0 fqs_stutter=3 test_boost=1/0 test_boost_interval=7 test_boost_duration=4 rcu-torture: rtc: (null) ver: 155441 tfle: 0 rta: 155441 rtaf: 8884 rtf: 155440 rtmbe: 0 rtbe: 0 rtbke: 0 rtbre: 0 rtbf: 0 rtb: 0 nt: 3055767 rcu-torture: Reader Pipe: 727860534 34213 0 0 0 0 0 0 0 0 0 rcu-torture: Reader Batch: 727877838 17003 0 0 0 0 0 0 0 0 0 rcu-torture: Free-Block Circulation: 155440 155440 155440 155440 155440 155440 155440 155440 155440 155440 0 rcu-torture:--- End of test: SUCCESS: nreaders=16 nfakewriters=4 stat_interval=30 verbose=0 test_no_idle_hz=1 shuffle_interval=3 stutter=5 irqreader=1 fqs_duration=0 fqs_holdoff=0 fqs_stutter=3 test_boost=1/0 test_boost_interval=7 test_boost_duration=4”h]”hXsrcu-torture:--- Start of test: nreaders=16 nfakewriters=4 stat_interval=30 verbose=0 test_no_idle_hz=1 shuffle_interval=3 stutter=5 irqreader=1 fqs_duration=0 fqs_holdoff=0 fqs_stutter=3 test_boost=1/0 test_boost_interval=7 test_boost_duration=4 rcu-torture: rtc: (null) ver: 155441 tfle: 0 rta: 155441 rtaf: 8884 rtf: 155440 rtmbe: 0 rtbe: 0 rtbke: 0 rtbre: 0 rtbf: 0 rtb: 0 nt: 3055767 rcu-torture: Reader Pipe: 727860534 34213 0 0 0 0 0 0 0 0 0 rcu-torture: Reader Batch: 727877838 17003 0 0 0 0 0 0 0 0 0 rcu-torture: Free-Block Circulation: 155440 155440 155440 155440 155440 155440 155440 155440 155440 155440 0 rcu-torture:--- End of test: SUCCESS: nreaders=16 nfakewriters=4 stat_interval=30 verbose=0 test_no_idle_hz=1 shuffle_interval=3 stutter=5 irqreader=1 fqs_duration=0 fqs_holdoff=0 fqs_stutter=3 test_boost=1/0 test_boost_interval=7 test_boost_duration=4”…”�”}”hj5sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´Khjh²hubhï)�”}”(hX!The command "dmesg | grep torture:" will extract this information on most systems. On more esoteric configurations, it may be necessary to use other commands to access the output of the printk()s used by the RCU torture test. The printk()s use KERN_ALERT, so they should be evident. ;-)”h]”hX%The command “dmesg | grep torture:â€� will extract this information on most systems. On more esoteric configurations, it may be necessary to use other commands to access the output of the printk()s used by the RCU torture test. The printk()s use KERN_ALERT, so they should be evident. ;-)”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K!hjh²hubhï)�”}”(hŒÊThe first and last lines show the rcutorture module parameters, and the last line shows either "SUCCESS" or "FAILURE", based on rcutorture's automatic determination as to whether RCU operated correctly.”h]”hŒÔThe first and last lines show the rcutorture module parameters, and the last line shows either “SUCCESSâ€� or “FAILUREâ€�, based on rcutorture’s automatic determination as to whether RCU operated correctly.”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K'hjh²hubhï)�”}”(hŒThe entries are as follows:”h]”hŒThe entries are as follows:”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K+hjh²hubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒN"rtc": The hexadecimal address of the structure currently visible to readers. ”h]”hï)�”}”(hŒM"rtc": The hexadecimal address of the structure currently visible to readers.”h]”hŒQ“rtcâ€�: The hexadecimal address of the structure currently visible to readers.”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K-hjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒm"ver": The number of times since boot that the RCU writer task has changed the structure visible to readers. ”h]”hï)�”}”(hŒl"ver": The number of times since boot that the RCU writer task has changed the structure visible to readers.”h]”hŒp“verâ€�: The number of times since boot that the RCU writer task has changed the structure visible to readers.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K0hjŒubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒæ"tfle": If non-zero, indicates that the "torture freelist" containing structures to be placed into the "rtc" area is empty. This condition is important, since it can fool you into thinking that RCU is working when it is not. :-/ ”h]”hï)�”}”(hŒå"tfle": If non-zero, indicates that the "torture freelist" containing structures to be placed into the "rtc" area is empty. This condition is important, since it can fool you into thinking that RCU is working when it is not. :-/”h]”hŒñ“tfleâ€�: If non-zero, indicates that the “torture freelistâ€� containing structures to be placed into the “rtcâ€� area is empty. This condition is important, since it can fool you into thinking that RCU is working when it is not. :-/”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K3hj¤ubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒA"rta": Number of structures allocated from the torture freelist. ”h]”hï)�”}”(hŒ@"rta": Number of structures allocated from the torture freelist.”h]”hŒD“rtaâ€�: Number of structures allocated from the torture freelist.”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K8hj¼ubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒß"rtaf": Number of allocations from the torture freelist that have failed due to the list being empty. It is not unusual for this to be non-zero, but it is bad for it to be a large fraction of the value indicated by "rta". ”h]”hï)�”}”(hŒÞ"rtaf": Number of allocations from the torture freelist that have failed due to the list being empty. It is not unusual for this to be non-zero, but it is bad for it to be a large fraction of the value indicated by "rta".”h]”hŒæâ€œrtafâ€�: Number of allocations from the torture freelist that have failed due to the list being empty. It is not unusual for this to be non-zero, but it is bad for it to be a large fraction of the value indicated by “rtaâ€�.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K:hjÔubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒ2"rtf": Number of frees into the torture freelist. ”h]”hï)�”}”(hŒ1"rtf": Number of frees into the torture freelist.”h]”hŒ5“rtfâ€�: Number of frees into the torture freelist.”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K?hjìubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒ¤"rtmbe": A non-zero value indicates that rcutorture believes that rcu_assign_pointer() and rcu_dereference() are not working correctly. This value should be zero. ”h]”hï)�”}”(hŒ£"rtmbe": A non-zero value indicates that rcutorture believes that rcu_assign_pointer() and rcu_dereference() are not working correctly. This value should be zero.”h]”hŒ§â€œrtmbeâ€�: A non-zero value indicates that rcutorture believes that rcu_assign_pointer() and rcu_dereference() are not working correctly. This value should be zero.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KAhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒo"rtbe": A non-zero value indicates that one of the rcu_barrier() family of functions is not working correctly. ”h]”hï)�”}”(hŒn"rtbe": A non-zero value indicates that one of the rcu_barrier() family of functions is not working correctly.”h]”hŒr“rtbeâ€�: A non-zero value indicates that one of the rcu_barrier() family of functions is not working correctly.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KEhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒ‚"rtbke": rcutorture was unable to create the real-time kthreads used to force RCU priority inversion. This value should be zero. ”h]”hï)�”}”(hŒ�"rtbke": rcutorture was unable to create the real-time kthreads used to force RCU priority inversion. This value should be zero.”h]”hŒ…“rtbkeâ€�: rcutorture was unable to create the real-time kthreads used to force RCU priority inversion. This value should be zero.”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KHhj4ubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒÁ"rtbre": Although rcutorture successfully created the kthreads used to force RCU priority inversion, it was unable to set them to the real-time priority level of 1. This value should be zero. ”h]”hï)�”}”(hŒÀ"rtbre": Although rcutorture successfully created the kthreads used to force RCU priority inversion, it was unable to set them to the real-time priority level of 1. This value should be zero.”h]”hŒÄ“rtbreâ€�: Although rcutorture successfully created the kthreads used to force RCU priority inversion, it was unable to set them to the real-time priority level of 1. This value should be zero.”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KKhjLubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒa"rtbf": The number of times that RCU priority boosting failed to resolve RCU priority inversion. ”h]”hï)�”}”(hŒ`"rtbf": The number of times that RCU priority boosting failed to resolve RCU priority inversion.”h]”hŒd“rtbfâ€�: The number of times that RCU priority boosting failed to resolve RCU priority inversion.”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KOhjdubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒÓ"rtb": The number of times that rcutorture attempted to force an RCU priority inversion condition. If you are testing RCU priority boosting via the "test_boost" module parameter, this value should be non-zero. ”h]”hï)�”}”(hŒÒ"rtb": The number of times that rcutorture attempted to force an RCU priority inversion condition. If you are testing RCU priority boosting via the "test_boost" module parameter, this value should be non-zero.”h]”hŒÚ“rtbâ€�: The number of times that rcutorture attempted to force an RCU priority inversion condition. If you are testing RCU priority boosting via the “test_boostâ€� module parameter, this value should be non-zero.”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KRhj|ubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hŒ°"nt": The number of times rcutorture ran RCU read-side code from within a timer handler. This value should be non-zero only if you specified the "irqreader" module parameter. ”h]”hï)�”}”(hŒ¯"nt": The number of times rcutorture ran RCU read-side code from within a timer handler. This value should be non-zero only if you specified the "irqreader" module parameter.”h]”hŒ·â€œntâ€�: The number of times rcutorture ran RCU read-side code from within a timer handler. This value should be non-zero only if you specified the “irqreaderâ€� module parameter.”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KWhj”ubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hXE"Reader Pipe": Histogram of "ages" of structures seen by readers. If any entries past the first two are non-zero, RCU is broken. And rcutorture prints the error flag string "!!!" to make sure you notice. The age of a newly allocated structure is zero, it becomes one when removed from reader visibility, and is incremented once per grace period subsequently -- and is freed after passing through (RCU_TORTURE_PIPE_LEN-2) grace periods. The output displayed above was taken from a correctly working RCU. If you want to see what it looks like when broken, break it yourself. ;-) ”h]”(hï)�”}”(hX´"Reader Pipe": Histogram of "ages" of structures seen by readers. If any entries past the first two are non-zero, RCU is broken. And rcutorture prints the error flag string "!!!" to make sure you notice. The age of a newly allocated structure is zero, it becomes one when removed from reader visibility, and is incremented once per grace period subsequently -- and is freed after passing through (RCU_TORTURE_PIPE_LEN-2) grace periods.”h]”hXÀ“Reader Pipeâ€�: Histogram of “agesâ€� of structures seen by readers. If any entries past the first two are non-zero, RCU is broken. And rcutorture prints the error flag string “!!!â€� to make sure you notice. The age of a newly allocated structure is zero, it becomes one when removed from reader visibility, and is incremented once per grace period subsequently -- and is freed after passing through (RCU_TORTURE_PIPE_LEN-2) grace periods.”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K[hj¬ubhï)�”}”(hŒŽThe output displayed above was taken from a correctly working RCU. If you want to see what it looks like when broken, break it yourself. ;-)”h]”hŒŽThe output displayed above was taken from a correctly working RCU. If you want to see what it looks like when broken, break it yourself. ;-)”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kchj¬ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hXp"Reader Batch": Another histogram of "ages" of structures seen by readers, but in terms of counter flips (or batches) rather than in terms of grace periods. The legal number of non-zero entries is again two. The reason for this separate view is that it is sometimes easier to get the third entry to show up in the "Reader Batch" list than in the "Reader Pipe" list. ”h]”hï)�”}”(hXo"Reader Batch": Another histogram of "ages" of structures seen by readers, but in terms of counter flips (or batches) rather than in terms of grace periods. The legal number of non-zero entries is again two. The reason for this separate view is that it is sometimes easier to get the third entry to show up in the "Reader Batch" list than in the "Reader Pipe" list.”h]”hX“Reader Batchâ€�: Another histogram of “agesâ€� of structures seen by readers, but in terms of counter flips (or batches) rather than in terms of grace periods. The legal number of non-zero entries is again two. The reason for this separate view is that it is sometimes easier to get the third entry to show up in the “Reader Batchâ€� list than in the “Reader Pipeâ€� list.”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KghjÒubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubjs)�”}”(hXñ"Free-Block Circulation": Shows the number of torture structures that have reached a given point in the pipeline. The first element should closely correspond to the number of structures allocated, the second to the number that have been removed from reader view, and all but the last remaining to the corresponding number of passes through a grace period. The last entry should be zero, as it is only incremented if a torture structure's counter somehow gets incremented farther than it should. ”h]”hï)�”}”(hXð"Free-Block Circulation": Shows the number of torture structures that have reached a given point in the pipeline. The first element should closely correspond to the number of structures allocated, the second to the number that have been removed from reader view, and all but the last remaining to the corresponding number of passes through a grace period. The last entry should be zero, as it is only incremented if a torture structure's counter somehow gets incremented farther than it should.”h]”hXö“Free-Block Circulationâ€�: Shows the number of torture structures that have reached a given point in the pipeline. The first element should closely correspond to the number of structures allocated, the second to the number that have been removed from reader view, and all but the last remaining to the corresponding number of passes through a grace period. The last entry should be zero, as it is only incremented if a torture structure’s counter somehow gets incremented farther than it should.”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Knhjêubah}”(h]”h ]”h"]”h$]”h&]”uh1jrhjoh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jmh³hÇh´K-hjh²hubhï)�”}”(hŒ�Different implementations of RCU can provide implementation-specific additional information. For example, Tree SRCU provides the following additional line::”h]”hŒœDifferent implementations of RCU can provide implementation-specific additional information. For example, Tree SRCU provides the following additional line:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kwhjh²hubj4)�”}”(hŒysrcud-torture: Tree SRCU per-CPU(idx=0): 0(35,-21) 1(-4,24) 2(1,1) 3(-26,20) 4(28,-47) 5(-9,4) 6(-10,14) 7(-14,11) T(1,6)”h]”hŒysrcud-torture: Tree SRCU per-CPU(idx=0): 0(35,-21) 1(-4,24) 2(1,1) 3(-26,20) 4(28,-47) 5(-9,4) 6(-10,14) 7(-14,11) T(1,6)”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´K{hjh²hubhï)�”}”(hX¤This line shows the per-CPU counter state, in this case for Tree SRCU using a dynamically allocated srcu_struct (hence "srcud-" rather than "srcu-"). The numbers in parentheses are the values of the "old" and "current" counters for the corresponding CPU. The "idx" value maps the "old" and "current" values to the underlying array, and is useful for debugging. The final "T" entry contains the totals of the counters.”h]”hXÄThis line shows the per-CPU counter state, in this case for Tree SRCU using a dynamically allocated srcu_struct (hence “srcud-â€� rather than “srcu-“). The numbers in parentheses are the values of the “oldâ€� and “currentâ€� counters for the corresponding CPU. The “idxâ€� value maps the “oldâ€� and “currentâ€� values to the underlying array, and is useful for debugging. The final “Tâ€� entry contains the totals of the counters.”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K}hjh²hubeh}”(h]”Œoutput”ah ]”h"]”Œoutput”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒUsage on Specific Kernel Builds”h]”hŒUsage on Specific Kernel Builds”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj<h²hh³hÇh´K…ubhï)�”}”(hXIt is sometimes desirable to torture RCU on a specific kernel build, for example, when preparing to put that kernel build into production. In that case, the kernel should be built with CONFIG_RCU_TORTURE_TEST=m so that the test can be started using modprobe and terminated using rmmod.”h]”hXIt is sometimes desirable to torture RCU on a specific kernel build, for example, when preparing to put that kernel build into production. In that case, the kernel should be built with CONFIG_RCU_TORTURE_TEST=m so that the test can be started using modprobe and terminated using rmmod.”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K‡hj<h²hubhï)�”}”(hŒ>For example, the following script may be used to torture RCU::”h]”hŒ=For example, the following script may be used to torture RCU:”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KŒhj<h²hubj4)�”}”(hŒP#!/bin/sh modprobe rcutorture sleep 3600 rmmod rcutorture dmesg | grep torture:”h]”hŒP#!/bin/sh modprobe rcutorture sleep 3600 rmmod rcutorture dmesg | grep torture:”…”�”}”hjisbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´KŽhj<h²hubhï)�”}”(hX‹The output can be manually inspected for the error flag of "!!!". One could of course create a more elaborate script that automatically checked for such errors. The "rmmod" command forces a "SUCCESS", "FAILURE", or "RCU_HOTPLUG" indication to be printk()ed. The first two are self-explanatory, while the last indicates that while there were no RCU failures, CPU-hotplug problems were detected.”h]”hXŸThe output can be manually inspected for the error flag of “!!!â€�. One could of course create a more elaborate script that automatically checked for such errors. The “rmmodâ€� command forces a “SUCCESSâ€�, “FAILUREâ€�, or “RCU_HOTPLUGâ€� indication to be printk()ed. The first two are self-explanatory, while the last indicates that while there were no RCU failures, CPU-hotplug problems were detected.”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K•hj<h²hubeh}”(h]”Œusage-on-specific-kernel-builds”ah ]”h"]”Œusage on specific kernel builds”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K…ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒUsage on Mainline Kernels”h]”hŒUsage on Mainline Kernels”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj�h²hh³hÇh´Kžubhï)�”}”(hXPWhen using rcutorture to test changes to RCU itself, it is often necessary to build a number of kernels in order to test that change across a broad range of combinations of the relevant Kconfig options and of the relevant kernel boot parameters. In this situation, use of modprobe and rmmod can be quite time-consuming and error-prone.”h]”hXPWhen using rcutorture to test changes to RCU itself, it is often necessary to build a number of kernels in order to test that change across a broad range of combinations of the relevant Kconfig options and of the relevant kernel boot parameters. In this situation, use of modprobe and rmmod can be quite time-consuming and error-prone.”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hj�h²hubhï)�”}”(hXTherefore, the tools/testing/selftests/rcutorture/bin/kvm.sh script is available for mainline testing for x86, arm64, and powerpc. By default, it will run the series of tests specified by tools/testing/selftests/rcutorture/configs/rcu/CFLIST, with each test running for 30 minutes within a guest OS using a minimal userspace supplied by an automatically generated initrd. After the tests are complete, the resulting build products and console output are analyzed for errors and the results of the runs are summarized.”h]”hXTherefore, the tools/testing/selftests/rcutorture/bin/kvm.sh script is available for mainline testing for x86, arm64, and powerpc. By default, it will run the series of tests specified by tools/testing/selftests/rcutorture/configs/rcu/CFLIST, with each test running for 30 minutes within a guest OS using a minimal userspace supplied by an automatically generated initrd. After the tests are complete, the resulting build products and console output are analyzed for errors and the results of the runs are summarized.”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K¦hj�h²hubhï)�”}”(hXNOn larger systems, rcutorture testing can be accelerated by passing the --cpus argument to kvm.sh. For example, on a 64-CPU system, "--cpus 43" would use up to 43 CPUs to run tests concurrently, which as of v5.4 would complete all the scenarios in two batches, reducing the time to complete from about eight hours to about one hour (not counting the time to build the sixteen kernels). The "--dryrun sched" argument will not run tests, but rather tell you how the tests would be scheduled into batches. This can be useful when working out how many CPUs to specify in the --cpus argument.”h]”hXVOn larger systems, rcutorture testing can be accelerated by passing the --cpus argument to kvm.sh. For example, on a 64-CPU system, “--cpus 43â€� would use up to 43 CPUs to run tests concurrently, which as of v5.4 would complete all the scenarios in two batches, reducing the time to complete from about eight hours to about one hour (not counting the time to build the sixteen kernels). The “--dryrun schedâ€� argument will not run tests, but rather tell you how the tests would be scheduled into batches. This can be useful when working out how many CPUs to specify in the --cpus argument.”…”�”}”(hjºh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K¯hj�h²hubhï)�”}”(hX–Not all changes require that all scenarios be run. For example, a change to Tree SRCU might run only the SRCU-N and SRCU-P scenarios using the --configs argument to kvm.sh as follows: "--configs 'SRCU-N SRCU-P'". Large systems can run multiple copies of the full set of scenarios, for example, a system with 448 hardware threads can run five instances of the full set concurrently. To make this happen::”h]”hX�Not all changes require that all scenarios be run. For example, a change to Tree SRCU might run only the SRCU-N and SRCU-P scenarios using the --configs argument to kvm.sh as follows: “--configs ‘SRCU-N SRCU-P’â€�. Large systems can run multiple copies of the full set of scenarios, for example, a system with 448 hardware threads can run five instances of the full set concurrently. To make this happen:”…”�”}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K¹hj�h²hubj4)�”}”(hŒ&kvm.sh --cpus 448 --configs '5*CFLIST'”h]”hŒ&kvm.sh --cpus 448 --configs '5*CFLIST'”…”�”}”hjÖsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´KÀhj�h²hubhï)�”}”(hŒ]Alternatively, such a system can run 56 concurrent instances of a single eight-CPU scenario::”h]”hŒ\Alternatively, such a system can run 56 concurrent instances of a single eight-CPU scenario:”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÂhj�h²hubj4)�”}”(hŒ'kvm.sh --cpus 448 --configs '56*TREE04'”h]”hŒ'kvm.sh --cpus 448 --configs '56*TREE04'”…”�”}”hjòsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´KÅhj�h²hubhï)�”}”(hŒ?Or 28 concurrent instances of each of two eight-CPU scenarios::”h]”hŒ>Or 28 concurrent instances of each of two eight-CPU scenarios:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÇhj�h²hubj4)�”}”(hŒ1kvm.sh --cpus 448 --configs '28*TREE03 28*TREE04'”h]”hŒ1kvm.sh --cpus 448 --configs '28*TREE03 28*TREE04'”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´KÉhj�h²hubhï)�”}”(hŒùOf course, each concurrent instance will use memory, which can be limited using the --memory argument, which defaults to 512M. Small values for memory may require disabling the callback-flooding tests using the --bootargs parameter discussed below.”h]”hŒùOf course, each concurrent instance will use memory, which can be limited using the --memory argument, which defaults to 512M. Small values for memory may require disabling the callback-flooding tests using the --bootargs parameter discussed below.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KËhj�h²hubhï)�”}”(hX‚Sometimes additional debugging is useful, and in such cases the --kconfig parameter to kvm.sh may be used, for example, ``--kconfig 'CONFIG_RCU_EQS_DEBUG=y'``. In addition, there are the --gdb, --kasan, and --kcsan parameters. Note that --gdb limits you to one scenario per kvm.sh run and requires that you have another window open from which to run ``gdb`` as instructed by the script.”h]”(hŒxSometimes additional debugging is useful, and in such cases the --kconfig parameter to kvm.sh may be used, for example, ”…”�”}”(hj*h²hh³Nh´NubhŒliteral”“”)�”}”(hŒ&``--kconfig 'CONFIG_RCU_EQS_DEBUG=y'``”h]”hŒ"--kconfig 'CONFIG_RCU_EQS_DEBUG=y'”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hj*ubhŒÀ. In addition, there are the --gdb, --kasan, and --kcsan parameters. Note that --gdb limits you to one scenario per kvm.sh run and requires that you have another window open from which to run ”…”�”}”(hj*h²hh³Nh´Nubj3)�”}”(hŒ``gdb``”h]”hŒgdb”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hj*ubhŒ as instructed by the script.”…”�”}”(hj*h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÐhj�h²hubhï)�”}”(hXšKernel boot arguments can also be supplied, for example, to control rcutorture's module parameters. For example, to test a change to RCU's CPU stall-warning code, use "--bootargs 'rcutorture.stall_cpu=30'". This will of course result in the scripting reporting a failure, namely the resulting RCU CPU stall warning. As noted above, reducing memory may require disabling rcutorture's callback-flooding tests::”h]”hX§Kernel boot arguments can also be supplied, for example, to control rcutorture’s module parameters. For example, to test a change to RCU’s CPU stall-warning code, use “--bootargs ‘rcutorture.stall_cpu=30’â€�. This will of course result in the scripting reporting a failure, namely the resulting RCU CPU stall warning. As noted above, reducing memory may require disabling rcutorture’s callback-flooding tests:”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K×hj�h²hubj4)�”}”(hŒfkvm.sh --cpus 448 --configs '56*TREE04' --memory 128M \ --bootargs 'rcutorture.fwd_progress=0'”h]”hŒfkvm.sh --cpus 448 --configs '56*TREE04' --memory 128M \ --bootargs 'rcutorture.fwd_progress=0'”…”�”}”hjlsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´KÞhj�h²hubhï)�”}”(hŒjSometimes all that is needed is a full set of kernel builds. This is what the --buildonly parameter does.”h]”hŒjSometimes all that is needed is a full set of kernel builds. This is what the --buildonly parameter does.”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Káhj�h²hubhï)�”}”(hXPThe --duration parameter can override the default run time of 30 minutes. For example, ``--duration 2d`` would run for two days, ``--duration 3h`` would run for three hours, ``--duration 5m`` would run for five minutes, and ``--duration 45s`` would run for 45 seconds. This last can be useful for tracking down rare boot-time failures.”h]”(hŒWThe --duration parameter can override the default run time of 30 minutes. For example, ”…”�”}”(hjˆh²hh³Nh´Nubj3)�”}”(hŒ``--duration 2d``”h]”hŒ --duration 2d”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hjˆubhŒ would run for two days, ”…”�”}”(hjˆh²hh³Nh´Nubj3)�”}”(hŒ``--duration 3h``”h]”hŒ --duration 3h”…”�”}”(hj¢h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hjˆubhŒ would run for three hours, ”…”�”}”(hjˆh²hh³Nh´Nubj3)�”}”(hŒ``--duration 5m``”h]”hŒ --duration 5m”…”�”}”(hj´h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hjˆubhŒ! would run for five minutes, and ”…”�”}”(hjˆh²hh³Nh´Nubj3)�”}”(hŒ``--duration 45s``”h]”hŒ--duration 45s”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hjˆubhŒ^ would run for 45 seconds. This last can be useful for tracking down rare boot-time failures.”…”�”}”(hjˆh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kähj�h²hubhï)�”}”(hŒÊFinally, the --trust-make parameter allows each kernel build to reuse what it can from the previous kernel build. Please note that without the --trust-make parameter, your tags files may be demolished.”h]”hŒÊFinally, the --trust-make parameter allows each kernel build to reuse what it can from the previous kernel build. Please note that without the --trust-make parameter, your tags files may be demolished.”…”�”}”(hjÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kêhj�h²hubhï)�”}”(hŒgThere are additional more arcane arguments that are documented in the source code of the kvm.sh script.”h]”hŒgThere are additional more arcane arguments that are documented in the source code of the kvm.sh script.”…”�”}”(hjìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kîhj�h²hubhï)�”}”(hX·If a run contains failures, the number of buildtime and runtime failures is listed at the end of the kvm.sh output, which you really should redirect to a file. The build products and console output of each run is kept in tools/testing/selftests/rcutorture/res in timestamped directories. A given directory can be supplied to kvm-find-errors.sh in order to have it cycle you through summaries of errors and full error logs. For example::”h]”hX¶If a run contains failures, the number of buildtime and runtime failures is listed at the end of the kvm.sh output, which you really should redirect to a file. The build products and console output of each run is kept in tools/testing/selftests/rcutorture/res in timestamped directories. A given directory can be supplied to kvm-find-errors.sh in order to have it cycle you through summaries of errors and full error logs. For example:”…”�”}”(hjúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kñhj�h²hubj4)�”}”(hŒ~tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh \ tools/testing/selftests/rcutorture/res/2020.01.20-15.54.23”h]”hŒ~tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh \ tools/testing/selftests/rcutorture/res/2020.01.20-15.54.23”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´Køhj�h²hubhï)�”}”(hX However, it is often more convenient to access the files directly. Files pertaining to all scenarios in a run reside in the top-level directory (2020.01.20-15.54.23 in the example above), while per-scenario files reside in a subdirectory named after the scenario (for example, "TREE04"). If a given scenario ran more than once (as in "--configs '56*TREE04'" above), the directories corresponding to the second and subsequent runs of that scenario include a sequence number, for example, "TREE04.2", "TREE04.3", and so on.”h]”hXHowever, it is often more convenient to access the files directly. Files pertaining to all scenarios in a run reside in the top-level directory (2020.01.20-15.54.23 in the example above), while per-scenario files reside in a subdirectory named after the scenario (for example, “TREE04â€�). If a given scenario ran more than once (as in “--configs ‘56*TREE04’â€� above), the directories corresponding to the second and subsequent runs of that scenario include a sequence number, for example, “TREE04.2â€�, “TREE04.3â€�, and so on.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kûhj�h²hubhï)�”}”(hŒËThe most frequently used file in the top-level directory is testid.txt. If the test ran in a git repository, then this file contains the commit that was tested and any uncommitted changes in diff format.”h]”hŒËThe most frequently used file in the top-level directory is testid.txt. If the test ran in a git repository, then this file contains the commit that was tested and any uncommitted changes in diff format.”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhj�h²hubhï)�”}”(hŒFThe most frequently used files in each per-scenario-run directory are:”h]”hŒFThe most frequently used files in each per-scenario-run directory are:”…”�”}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhj�h²hubhŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hŒ1.config: This file contains the Kconfig options. ”h]”(hŒterm”“”)�”}”(hŒ.config:”h]”hŒ.config:”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKh³hÇh´M hjGubhŒ definition”“”)�”}”(hhh]”hï)�”}”(hŒ'This file contains the Kconfig options.”h]”hŒ'This file contains the Kconfig options.”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M hj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjGubeh}”(h]”h ]”h"]”h$]”h&]”uh1jEh³hÇh´M hjBubjF)�”}”(hŒ>Make.out: This contains build output for a specific scenario. ”h]”(jL)�”}”(hŒ Make.out:”h]”hŒ Make.out:”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKh³hÇh´Mhjzubj\)�”}”(hhh]”hï)�”}”(hŒ3This contains build output for a specific scenario.”h]”hŒ3This contains build output for a specific scenario.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MhjŒubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjzubeh}”(h]”h ]”h"]”h$]”h&]”uh1jEh³hÇh´MhjBh²hubjF)�”}”(hŒ©console.log: This contains the console output for a specific scenario. This file may be examined once the kernel has booted, but it might not exist if the build failed. ”h]”(jL)�”}”(hŒ console.log:”h]”hŒ console.log:”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKh³hÇh´Mhj©ubj\)�”}”(hhh]”hï)�”}”(hŒ›This contains the console output for a specific scenario. This file may be examined once the kernel has booted, but it might not exist if the build failed.”h]”hŒ›This contains the console output for a specific scenario. This file may be examined once the kernel has booted, but it might not exist if the build failed.”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhj»ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hj©ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jEh³hÇh´MhjBh²hubjF)�”}”(hŒXvmlinux: This contains the kernel, which can be useful with tools like objdump and gdb. ”h]”(jL)�”}”(hŒvmlinux:”h]”hŒvmlinux:”…”�”}”(hjÜh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKh³hÇh´MhjØubj\)�”}”(hhh]”hï)�”}”(hŒNThis contains the kernel, which can be useful with tools like objdump and gdb.”h]”hŒNThis contains the kernel, which can be useful with tools like objdump and gdb.”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhjêubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjØubeh}”(h]”h ]”h"]”h$]”h&]”uh1jEh³hÇh´MhjBh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j@hj�h²hh³hÇh´Nubhï)�”}”(hŒ“A number of additional files are available, but are less frequently used. Many are intended for debugging of rcutorture itself or of its scripting.”h]”hŒ“A number of additional files are available, but are less frequently used. Many are intended for debugging of rcutorture itself or of its scripting.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhj�h²hubhï)�”}”(hŒˆAs of v5.4, a successful run with the default set of scenarios produces the following summary at the end of the run on a 12-CPU system::”h]”hŒ‡As of v5.4, a successful run with the default set of scenarios produces the following summary at the end of the run on a 12-CPU system:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhj�h²hubj4)�”}”(hXoSRCU-N ------- 804233 GPs (148.932/s) [srcu: g10008272 f0x0 ] SRCU-P ------- 202320 GPs (37.4667/s) [srcud: g1809476 f0x0 ] SRCU-t ------- 1122086 GPs (207.794/s) [srcu: g0 f0x0 ] SRCU-u ------- 1111285 GPs (205.794/s) [srcud: g1 f0x0 ] TASKS01 ------- 19666 GPs (3.64185/s) [tasks: g0 f0x0 ] TASKS02 ------- 20541 GPs (3.80389/s) [tasks: g0 f0x0 ] TASKS03 ------- 19416 GPs (3.59556/s) [tasks: g0 f0x0 ] TINY01 ------- 836134 GPs (154.84/s) [rcu: g0 f0x0 ] n_max_cbs: 34198 TINY02 ------- 850371 GPs (157.476/s) [rcu: g0 f0x0 ] n_max_cbs: 2631 TREE01 ------- 162625 GPs (30.1157/s) [rcu: g1124169 f0x0 ] TREE02 ------- 333003 GPs (61.6672/s) [rcu: g2647753 f0x0 ] n_max_cbs: 35844 TREE03 ------- 306623 GPs (56.782/s) [rcu: g2975325 f0x0 ] n_max_cbs: 1496497 CPU count limited from 16 to 12 TREE04 ------- 246149 GPs (45.5831/s) [rcu: g1695737 f0x0 ] n_max_cbs: 434961 TREE05 ------- 314603 GPs (58.2598/s) [rcu: g2257741 f0x2 ] n_max_cbs: 193997 TREE07 ------- 167347 GPs (30.9902/s) [rcu: g1079021 f0x0 ] n_max_cbs: 478732 CPU count limited from 16 to 12 TREE09 ------- 752238 GPs (139.303/s) [rcu: g13075057 f0x0 ] n_max_cbs: 99011”h]”hXoSRCU-N ------- 804233 GPs (148.932/s) [srcu: g10008272 f0x0 ] SRCU-P ------- 202320 GPs (37.4667/s) [srcud: g1809476 f0x0 ] SRCU-t ------- 1122086 GPs (207.794/s) [srcu: g0 f0x0 ] SRCU-u ------- 1111285 GPs (205.794/s) [srcud: g1 f0x0 ] TASKS01 ------- 19666 GPs (3.64185/s) [tasks: g0 f0x0 ] TASKS02 ------- 20541 GPs (3.80389/s) [tasks: g0 f0x0 ] TASKS03 ------- 19416 GPs (3.59556/s) [tasks: g0 f0x0 ] TINY01 ------- 836134 GPs (154.84/s) [rcu: g0 f0x0 ] n_max_cbs: 34198 TINY02 ------- 850371 GPs (157.476/s) [rcu: g0 f0x0 ] n_max_cbs: 2631 TREE01 ------- 162625 GPs (30.1157/s) [rcu: g1124169 f0x0 ] TREE02 ------- 333003 GPs (61.6672/s) [rcu: g2647753 f0x0 ] n_max_cbs: 35844 TREE03 ------- 306623 GPs (56.782/s) [rcu: g2975325 f0x0 ] n_max_cbs: 1496497 CPU count limited from 16 to 12 TREE04 ------- 246149 GPs (45.5831/s) [rcu: g1695737 f0x0 ] n_max_cbs: 434961 TREE05 ------- 314603 GPs (58.2598/s) [rcu: g2257741 f0x2 ] n_max_cbs: 193997 TREE07 ------- 167347 GPs (30.9902/s) [rcu: g1079021 f0x0 ] n_max_cbs: 478732 CPU count limited from 16 to 12 TREE09 ------- 752238 GPs (139.303/s) [rcu: g13075057 f0x0 ] n_max_cbs: 99011”…”�”}”hj)sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´Mhj�h²hubeh}”(h]”Œusage-on-mainline-kernels”ah ]”h"]”Œusage on mainline kernels”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KžubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Repeated Runs”h]”hŒ Repeated Runs”…”�”}”(hjBh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj?h²hh³hÇh´M4ubhï)�”}”(hXSuppose that you are chasing down a rare boot-time failure. Although you could use kvm.sh, doing so will rebuild the kernel on each run. If you need (say) 1,000 runs to have confidence that you have fixed the bug, these pointless rebuilds can become extremely annoying.”h]”hXSuppose that you are chasing down a rare boot-time failure. Although you could use kvm.sh, doing so will rebuild the kernel on each run. If you need (say) 1,000 runs to have confidence that you have fixed the bug, these pointless rebuilds can become extremely annoying.”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M6hj?h²hubhï)�”}”(hŒ This is why kvm-again.sh exists.”h]”hŒ This is why kvm-again.sh exists.”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M;hj?h²hubhï)�”}”(hŒFSuppose that a previous kvm.sh run left its output in this directory::”h]”hŒESuppose that a previous kvm.sh run left its output in this directory:”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M=hj?h²hubj4)�”}”(hŒ:tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28”h]”hŒ:tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28”…”�”}”hjzsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´M?hj?h²hubhï)�”}”(hŒ:Then this run can be re-run without rebuilding as follow::”h]”hŒ9Then this run can be re-run without rebuilding as follow:”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MAhj?h²hubj4)�”}”(hŒGkvm-again.sh tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28”h]”hŒGkvm-again.sh tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28”…”�”}”hj–sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´MChj?h²hubhï)�”}”(hŒA few of the original run's kvm.sh parameters may be overridden, perhaps most notably --duration and --bootargs. For example::”h]”hŒ€A few of the original run’s kvm.sh parameters may be overridden, perhaps most notably --duration and --bootargs. For example:”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MEhj?h²hubj4)�”}”(hŒ`kvm-again.sh tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28 \ --duration 45s”h]”hŒ`kvm-again.sh tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28 \ --duration 45s”…”�”}”hj²sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´MHhj?h²hubhï)�”}”(hŒƒwould re-run the previous test, but for only 45 seconds, thus facilitating tracking down the aforementioned rare boot-time failure.”h]”hŒƒwould re-run the previous test, but for only 45 seconds, thus facilitating tracking down the aforementioned rare boot-time failure.”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MKhj?h²hubeh}”(h]”Œ repeated-runs”ah ]”h"]”Œ repeated runs”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M4ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒDistributed Runs”h]”hŒDistributed Runs”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÖh²hh³hÇh´MPubhï)�”}”(hX‚Although kvm.sh is quite useful, its testing is confined to a single system. It is not all that hard to use your favorite framework to cause (say) 5 instances of kvm.sh to run on your 5 systems, but this will very likely unnecessarily rebuild kernels. In addition, manually distributing the desired rcutorture scenarios across the available systems can be painstaking and error-prone.”h]”hX‚Although kvm.sh is quite useful, its testing is confined to a single system. It is not all that hard to use your favorite framework to cause (say) 5 instances of kvm.sh to run on your 5 systems, but this will very likely unnecessarily rebuild kernels. In addition, manually distributing the desired rcutorture scenarios across the available systems can be painstaking and error-prone.”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MRhjÖh²hubhï)�”}”(hŒ0And this is why the kvm-remote.sh script exists.”h]”hŒ0And this is why the kvm-remote.sh script exists.”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MYhjÖh²hubhï)�”}”(hŒ If the following command works::”h]”hŒIf the following command works:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M[hjÖh²hubj4)�”}”(hŒssh system0 date”h]”hŒssh system0 date”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´M]hjÖh²hubhï)�”}”(hŒand if it also works for system1, system2, system3, system4, and system5, and all of these systems have 64 CPUs, you can type::”h]”hŒ~and if it also works for system1, system2, system3, system4, and system5, and all of these systems have 64 CPUs, you can type:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M_hjÖh²hubj4)�”}”(hŒvkvm-remote.sh "system0 system1 system2 system3 system4 system5" \ --cpus 64 --duration 8h --configs "5*CFLIST"”h]”hŒvkvm-remote.sh "system0 system1 system2 system3 system4 system5" \ --cpus 64 --duration 8h --configs "5*CFLIST"”…”�”}”hj-sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´MbhjÖh²hubhï)�”}”(hX~This will build each default scenario's kernel on the local system, then spread each of five instances of each scenario over the systems listed, running each scenario for eight hours. At the end of the runs, the results will be gathered, recorded, and printed. Most of the parameters that kvm.sh will accept can be passed to kvm-remote.sh, but the list of systems must come first.”h]”hX€This will build each default scenario’s kernel on the local system, then spread each of five instances of each scenario over the systems listed, running each scenario for eight hours. At the end of the runs, the results will be gathered, recorded, and printed. Most of the parameters that kvm.sh will accept can be passed to kvm-remote.sh, but the list of systems must come first.”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MehjÖh²hubhï)�”}”(hŒŠThe kvm.sh ``--dryrun scenarios`` argument is useful for working out how many scenarios may be run in one batch across a group of systems.”h]”(hŒ The kvm.sh ”…”�”}”(hjIh²hh³Nh´Nubj3)�”}”(hŒ``--dryrun scenarios``”h]”hŒ--dryrun scenarios”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hjIubhŒi argument is useful for working out how many scenarios may be run in one batch across a group of systems.”…”�”}”(hjIh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MlhjÖh²hubhï)�”}”(hŒIYou can also re-run a previous remote run in a manner similar to kvm.sh::”h]”hŒHYou can also re-run a previous remote run in a manner similar to kvm.sh:”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MohjÖh²hubj4)�”}”(hŒ¤kvm-remote.sh "system0 system1 system2 system3 system4 system5" \ tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28-remote \ --duration 24h”h]”hŒ¤kvm-remote.sh "system0 system1 system2 system3 system4 system5" \ tools/testing/selftests/rcutorture/res/2022.11.03-11.26.28-remote \ --duration 24h”…”�”}”hjwsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j3h³hÇh´MqhjÖh²hubhï)�”}”(hŒzIn this case, most of the kvm-again.sh parameters may be supplied following the pathname of the old run-results directory.”h]”hŒzIn this case, most of the kvm-again.sh parameters may be supplied following the pathname of the old run-results directory.”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´MuhjÖh²hubeh}”(h]”Œdistributed-runs”ah ]”h"]”Œdistributed runs”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MPubeh}”(h]”Œrcu-torture-test-operation”ah ]”h"]”Œrcu torture test operation”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jÆŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j j�jjj9j6jŠj‡j<j9jÓjÐj˜j•uŒ nametypes”}”(j ‰j‰j9‰jЉj<‰jÓ‰j˜‰uh}”(j�hÊjhÝj6jj‡j<j9j�jÐj?j•jÖuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.