Repository navigation
Commit d12e1e5
ipc/sem.c: replace shared sem_otime with per-semaphore value
sem_otime contains the time of the last semaphore operation that
completed successfully. Every operation updates this value, thus access
from multiple cpus can cause thrashing.
Therefore the patch replaces the variable with a per-semaphore variable.
The per-array sem_otime is only calculated when required.
No performance improvement on a single-socket i3 - only important for
larger systems.
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent f269f40 commit d12e1e5
2 files changed
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
914 | | - | |
915 | | - | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
916 | 923 | | |
917 | 924 | | |
918 | 925 | | |
| |||
1058 | 1065 | | |
1059 | 1066 | | |
1060 | 1067 | | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1061 | 1083 | | |
1062 | 1084 | | |
1063 | 1085 | | |
| |||
1131 | 1153 | | |
1132 | 1154 | | |
1133 | 1155 | | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1137 | 1159 | | |
1138 | 1160 | | |
1139 | 1161 | | |
| |||
2025 | 2047 | | |
2026 | 2048 | | |
2027 | 2049 | | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
2028 | 2053 | | |
2029 | 2054 | | |
2030 | 2055 | | |
| |||
2036 | 2061 | | |
2037 | 2062 | | |
2038 | 2063 | | |
2039 | | - | |
| 2064 | + | |
2040 | 2065 | | |
2041 | 2066 | | |
2042 | 2067 | | |
0 commit comments