Jussi Kivilinna jussi.kivilinna@haltian.com [nuttx]
2017-05-10 15:34:34 UTC
Hello,
There's patch to prevent syslog messages from parallel running processes getting interleaved.
Patch adds semaphore to control syslog writing so that mangled messages such as these do not occur:
3377..118800000000]]gcaotnemwaany__mmaeimn_:d bpgo:l l ( ) t i m e d o u t
t[o t a l 3 7 . 1 8 0 0u0s0e]de v e n t _ s tfarteee_ c h a nlgaer:g eosltd
[s t a t e3:7 .01 8=0>0 0n0e]wg astteawtaey:_ m1e1m
_[d b g : 3M7e.m1:9 0 0 0 0 ] e v e3n1t2_3s3t6a t e _ c h a7n3g4e5:6 o l d s2t3a8t8e8:0 1 1 = >2 2n8e1w2 8s
t[a t e : 307
Approx. same messages after patch:
930000]gateway_mem_dbg: total used free largest
[ 38.930000]conman_main: poll() timed out
[ 38.930000]gateway_mem_dbg: Mem: 312304 73456 238848 228096
[ 38.930000]event_state_change: old state: 0 => new state: 11
-Jussi
There's patch to prevent syslog messages from parallel running processes getting interleaved.
Patch adds semaphore to control syslog writing so that mangled messages such as these do not occur:
3377..118800000000]]gcaotnemwaany__mmaeimn_:d bpgo:l l ( ) t i m e d o u t
t[o t a l 3 7 . 1 8 0 0u0s0e]de v e n t _ s tfarteee_ c h a nlgaer:g eosltd
[s t a t e3:7 .01 8=0>0 0n0e]wg astteawtaey:_ m1e1m
_[d b g : 3M7e.m1:9 0 0 0 0 ] e v e3n1t2_3s3t6a t e _ c h a7n3g4e5:6 o l d s2t3a8t8e8:0 1 1 = >2 2n8e1w2 8s
t[a t e : 307
Approx. same messages after patch:
930000]gateway_mem_dbg: total used free largest
[ 38.930000]conman_main: poll() timed out
[ 38.930000]gateway_mem_dbg: Mem: 312304 73456 238848 228096
[ 38.930000]event_state_change: old state: 0 => new state: 11
-Jussi