[ adding Song ] Song, I'm adding you to this thread for an opinion on what makes hardware monitoring tooling easier to consume in a production environment. QI is writing a daemon to catch alarms and notifications from the kernel's nvdimm sub-system.
QI, Song presented on extending SCSI uevents for storage device event logging at the last Linux Storage Summit. On Fri, Sep 1, 2017 at 2:12 PM, Dan Williams <dan.j.willi...@intel.com> wrote: > On Thu, Aug 31, 2017 at 6:42 PM, Qi, Fuli <qi.f...@jp.fujitsu.com> wrote: > > Hello, > > > > > > > > This is my first time to experience OSS world. I hope I can contribute > to NVDIMM development. > > > > > Welcome! > > > > This is a patch set of nvdimmd, a tiny daemon to monitor the features of > over > > > > threshold events. It finds and monitors all of the dimms which support > smart > > > > threshold. Although at this time, nvdimm daemon only outputs NVDIMM's > status to > > > > systemlog, I would like to get comments/opinions. > > > > > Sure, I'll take a deeper look next week. > > > > > > The output includes dimm's name, health state and spares percentage, etc. > > > > Here is a sample of the output. > > > > > > > > nvdimm warning: dimm over threshold notify [nmem2] > > > > health_state: non-critical > > > > spares_percentage: 75 > > > > > > > > About compiling the nvdimmd, I am not sure whether ndctl using automake > can be > > > > merged with into kernel or not[1], so a simple makefile is included. If > it is > > > > necessary to write into automake, please kindly let me know. > > > Yes, please use automake for now to integrate with the current build > system. > > > > Here is TODO list: > > > > - Currently, if multiply events are notified in the same time, nvdimmd > may lose some of them. > > > > I suppose it depends on select()’s specification, and I tried to use > poll() instead of select(), > > > > but it did not work well. So I need more research on select() and poll(). > > > > - Change the makefile to automake if necessary. > > > > - Add more information of dimm into the notification. > > > I need to do some more research myself on what is the easiest logging > implementation for other applications to consume, or if this should > just output raw json and let another application worry about > marhsaling that to a logging service. > > > > - Add a config file to configure the parameters and initial settings for > nvdimmd. > > > > - Implement a feature(framework) so that nvdimmd can call external > applications. > > > Sounds good. > _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm