mchehab / rasdaemon

Rasdaemon is a RAS (Reliability, Availability and Serviceability) logging tool. It records memory errors, using the EDAC tracing events. EDAC is a Linux kernel subsystem with handles detection of ECC errors from memory controllers for most chipsets on i386 and x86_64 architectures. EDAC drivers for other architectures like arm also exists.
GNU General Public License v2.0
188 stars 81 forks source link

The rasdaemon service may fail to be started for the first time. #168

Closed zhuofeng6 closed 2 weeks ago

zhuofeng6 commented 5 months ago

The rasdaemon creates a separate instance virtual directory on first startup, like /sys/kernel/debug/tracing/instances/rasdaemon.

After the directory is created, the kernel generates virtual files such as'trace_clock' and'set_event' in /sys/kernel/debug/tracing/instances/rasdaemon`.

The kernel generates virtual files and the rasdaemon accesses the virtual files at the same time. Therefore, the kernel may not generate the virtual files when the rasdaemon accesses the virtual files.

So add a 100 ms delay to give the kernel enough time to generate the files.

mchehab commented 2 weeks ago

Merged, thanks!