Home
last modified time | relevance | path

Searched full:contention (Results 1 – 25 of 211) sorted by relevance

123456789

/linux/tools/perf/tests/shell/
H A Dlock_contention.sh2 # kernel lock contention analysis test
37 echo "[Skip] No lock contention tracepoints"
52 echo "Testing perf lock record and perf lock contention"
55 perf lock contention -i ${perfdata} -E 1 -q 2> ${result}
65 echo "Testing perf lock contention --use-bpf"
72 # the perf lock contention output goes to the stderr
83 echo "Testing perf lock record and perf lock contention at the same time"
85 perf lock contention -i- -E 1 -q 2> ${result}
97 echo "Testing perf lock contention --threads"
98 perf lock contention -i ${perfdata} -t -E 1 -q 2> ${result}
[all …]
/linux/tools/perf/Documentation/
H A Dperf-lock.txt11 'perf lock' {record|report|script|info|contention}
30 'perf lock contention' shows contention statistics.
40 Output file name for perf lock contention and report.
121 CONTENTION OPTIONS
137 Show per-thread lock contention stat
141 Use BPF program to collect lock contention stats instead of
167 Maximum stack depth when collecting lock contention (default: 8).
178 Show lock contention stat by address
182 Show lock contention stat by owners. This option can be combined with -t,
188 Show lock contention only for given lock types (comma separated list).
[all …]
/linux/fs/ubifs/
H A Dshrinker.c53 * @contention: if any contention, this is set to %1
58 static int shrink_tnc(struct ubifs_info *c, int nr, int age, int *contention) in shrink_tnc() argument
108 *contention = 1; in shrink_tnc()
138 * @contention: if any contention, this is set to %1
144 static int shrink_tnc_trees(int nr, int age, int *contention) in shrink_tnc_trees() argument
167 *contention = 1; in shrink_tnc_trees()
177 *contention = 1; in shrink_tnc_trees()
187 freed += shrink_tnc(c, nr, age, contention); in shrink_tnc_trees()
283 int contention = 0; in ubifs_shrink_scan() local
299 freed = shrink_tnc_trees(nr, OLD_ZNODE_AGE, &contention); in ubifs_shrink_scan()
[all …]
/linux/include/drm/
H A Ddrm_exec.h49 * @prelocked: already locked GEM object due to contention
99 * locked and no more contention exists. At the beginning of the loop it is
117 * Control flow helper to continue when a contention was detected and we need to
127 * drm_exec_is_contended - check for contention
130 * Returns true if the drm_exec object has run into some contention while
/linux/Documentation/locking/
H A Dlockstat.rst14 Because things like lock contention can severely impact performance.
51 - number of lock contention that involved x-cpu data
80 It also tracks 4 contention points per class. A contention point is a call site
143 short separator (line 08, 13) from the contention points.
145 Lines 09-12 show the first 4 recorded contention points (the code
151 short separator. The contention points don't match the column descriptors,
152 they have two: contentions and [<IP>] symbol. The second set of contention
/linux/tools/perf/scripts/python/bin/
H A Dfutex-contention-report2 # description: futext contention measurement
4 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/futex-contention.py
/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c20 /* lock contention flags from include/trace/events/lock.h */
60 /* a map for contention_key (stores owner stack id) to contention data */
68 /* maintain timestamp at the beginning of contention */
76 /* maintain per-CPU timestamp at the beginning of contention */
84 /* actual lock contention statistics */
577 * Contention just happens, or corner case `lock` is owned by process not in contention_begin()
590 /* Contention is ongoing and new waiter joins */ in contention_begin()
655 * Try per-cpu map first and check if there's active contention. in contention_end()
687 /* No contention is occurring, delete `lock` entry in `owner_data` */ in contention_end()
691 * Contention is still ongoing, with a new owner (current task). `owner_data` in contention_end()
H A Dlock_data.h9 u64 timestamp; // The time while the owner acquires lock and contention is going on.
/linux/tools/perf/scripts/python/
H A Dfutex-contention.py1 # futex contention
11 # Measures futex contention
/linux/include/asm-generic/
H A Dfutex.h34 * -EAGAIN - Atomic operation was unable to complete due to contention
96 * -EAGAIN - Atomic operation was unable to complete due to contention
/linux/include/linux/
H A Drcu_node_tree.h4 * global attributes while avoiding common-case global contention. A key
8 * unlimited scalability while maintaining a constant level of contention
/linux/kernel/sched/
H A Dfeatures.h80 * using the scheduler IPI. Reduces rq->lock contention/bounces.
103 * rq lock and possibly create a large contention, sending an
/linux/kernel/locking/
H A Dlocktorture.c177 /* We want a long delay occasionally to force massive contention. */ in torture_lock_busted_write_delay()
255 * we want a long delay occasionally to force massive contention. in torture_spin_lock_write_delay()
433 * we want a long delay occasionally to force massive contention. in torture_rwlock_write_delay()
459 * we want a long delay occasionally to force massive contention. in torture_rwlock_read_delay()
560 /* We want a long delay occasionally to force massive contention. */ in torture_mutex_delay()
733 * we want a long delay occasionally to force massive contention. in torture_rtmutex_delay()
793 /* We want a long delay occasionally to force massive contention. */ in torture_rwsem_write_delay()
815 /* We want a long delay occasionally to force massive contention. */ in torture_rwsem_read_delay()
921 * contention patterns (allowing for multiple disjoint in lock_torture_writer()
/linux/tools/perf/
H A Dbuiltin-lock.c15 #include "util/lock-contention.h"
299 static int select_key(bool contention) in select_key() argument
304 if (contention) in select_key()
323 static int add_output_field(bool contention, char *name) in add_output_field() argument
328 if (contention) in add_output_field()
346 static int setup_output_field(bool contention, const char *str) in setup_output_field() argument
352 if (contention) in setup_output_field()
370 ret = add_output_field(contention, tok); in setup_output_field()
1100 * It can have nested contention begin with mutex spinning, in report_lock_contention_begin_event()
1101 * then we would use the original contention begin event and in report_lock_contention_begin_event()
[all …]
/linux/Documentation/bpf/
H A Dmap_hash.rst241 depends on the size of the map. Larger batch size reduces lock contention, but
261 contention may impact update operations, though the map type and flags may
262 impact the actual contention on those locks, based on the logic described in
/linux/Documentation/trace/
H A Devents-kmem.rst72 contention on the lruvec->lru_lock.
82 for order-0 pages, reduces contention on the zone->lock and reduces the
/linux/Documentation/scheduler/
H A Dschedutil.rst38 two metrics are the same, but once there is contention for the CPU 'running'
40 while 'runnable' will increase to reflect the amount of contention.
/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a510/
H A Dpipeline.json93 …VPU hazard. This event counts every cycle where the core stalls due to contention for the VPU with…
96 …VPU hazard. This event counts every cycle where the core stalls due to contention for the VPU with…
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_numa.c51 /* contention, set waiter */ in futex_numa_32_lock()
149 * abort and thereby generate hb-lock contention. in contendfn()
/linux/include/uapi/linux/
H A Dnfs_fs.h33 #define FLUSH_SYNC 1 /* file being synced, or contention */
/linux/drivers/infiniband/hw/hfi1/
H A Dmmu_rb.h36 * the cacheline contention reduction of giving the spinlock its own
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_arena_spin_lock.h265 * If we observe any contention; queue. in arena_spin_lock_slowpath()
278 * If we observe contention, there is a concurrent locker. in arena_spin_lock_slowpath()
430 goto release; /* No contention */ in arena_spin_lock_slowpath()
/linux/net/can/j1939/
H A Daddress-claim.c181 * to resolve the address contention with another CF. in j1939_ac_process()
202 * to resolve the contention with another CF (timer is still in j1939_ac_process()
/linux/include/net/
H A Dregulatory.h188 * @cw_min: minimum contention window [a value of the form
190 * @cw_max: maximum contention window [like @cw_min]
/linux/include/linux/mtd/
H A Dflashchip.h91 /* This is used to handle contention on write/erase operations

123456789