/sys/module System Module Information

A parser to parse the system module information.

Parsers included in this module are:

DMModUseBlkMq - file /sys/module/dm_mod/parameters/use_blk_mq

SCSIModUseBlkMq - file /sys/module/scsi_mod/parameters/use_blk_mq

VHostNetZeroCopyTx - file /sys/module/vhost_net/parameters/experimental_zcopytx

class insights.parsers.sys_module.DMModUseBlkMq(context)[source]

Bases: insights.parsers.sys_module.XModUseBlkMq

This file /sys/module/dm_mod/parameters/use_blk_mq shows if use_blk_mq parameter is on.

Examples:

>>> dm_mod_use_blk_mq.val
'Y'
>>> dm_mod_use_blk_mq.is_on
True
class insights.parsers.sys_module.SCSIModUseBlkMq(context)[source]

Bases: insights.parsers.sys_module.XModUseBlkMq

This file /sys/module/scsi_mod/parameters/use_blk_mq shows if use_blk_mq parameter is on.

Examples:

>>> scsi_mod_use_blk_mq.val
'N'
>>> scsi_mod_use_blk_mq.is_on
False
class insights.parsers.sys_module.VHostNetZeroCopyTx(context)[source]

Bases: insights.parsers.sys_module.XModUseBlkMq

This file /sys/module/vhost_net/parameters/experimental_zcopytx shows if vhost_net’s zero-copy tx parameter is enabled or not.

Examples:

>>> vhost_net_zero_copy_tx.val
'0'
>>> vhost_net_zero_copy_tx.is_on
False
class insights.parsers.sys_module.XModUseBlkMq(context)[source]

Bases: insights.core.Parser

Parse for file /sys/module/{dm_mod,scsi_mod}/parameters/use_blk_mq. File content shows if use_blk_mq parameter is on.

Sample Content:

Y
Raises

SkipException -- When nothing need to parse.

val

Raw data of the content.

Type

str

property is_on
Returns

True for on, False for off.

Return type

(bool)

Raises

ValueError -- When tell is_on for unknown cases.

parse_content(content)[source]

This method must be implemented by classes based on this class.