23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20.3 Debug Support<br />

/proc/sys/lnet/debug<br />

<strong>Lustre</strong> generates a detailed log of all its operations to aid in debugging by default.<br />

This can affect the performance or speed you achieve with <strong>Lustre</strong>. Therefore, it is<br />

useful to reduce this overhead by turning down the debug level. Raise the debug<br />

level when you need to collect the logs for debugging problems.<br />

You can verify the debug level used by examining the sysctl that controls the<br />

debugging as shown below:<br />

# sysctl lnet.debug<br />

lnet.debug = -1<br />

In the above example, -1 indicates full debugging; it is a bitmask. You can disable<br />

debugging completely by running the following command on all the concerned<br />

nodes:<br />

# sysctl -w lnet.debug=0<br />

lnet.debug = 0<br />

The appropriate debug level for a production environment is 0x3f0400. It collects<br />

enough high-level information to aid debugging, but it does not cause any serious<br />

performance impact.<br />

You can also verify and change the debug level using the /proc interface in <strong>Lustre</strong><br />

as shown below:<br />

# cat /proc/sys/lnet/debug<br />

And change it to:<br />

# echo 0x3f0400 > /proc/sys/lnet/debug<br />

/proc/sys/lnet/subsystem_debug<br />

This controls the debug logs for subsystems (see S_* definitions).<br />

/proc/sys/lnet/debug_path<br />

This indicates the location where debugging symbols should be stored for gdb. The<br />

default is set to /r/tmp/lustre-log-localhost.localdomain.<br />

These values can also be set via sysctl -w lnet.debug={value}<br />

Note – The above entries only exist when <strong>Lustre</strong> has already been loaded.<br />

Chapter 20 <strong>Lustre</strong>Proc 20-25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!