we have a script which runs below sysrq command to get memory info in syslog and then script copies the syslog.
echo -m > /proc/sysrq-trigger
From documentation I see that at the at kernel level "handle_sysrq" gets called which runs in the interrupt context but there are two ways
sysrq is triggered right ?
- one is keys combination on keyboard. And
- another is by writing appropriate character to
Now we want to know if memory-info gets written to
syslog/dmesg immediately before echo returns or it is
memory-info is written after echo returns ?