Skip to content

Understanding OSDev for block devices #742

@bertwesarg

Description

@bertwesarg

The docu reads:

Therefore hwloc tries to add software devices (HWLOC_OBJ_OS_DEVICE, also known as OS devices).

So my (individual) block devices attached to an AHCI are "software" devices? This does not make sense to me. For NIC/OPENFABRICS/GPU/COPRO this makes sense and the XMLs are looking what I would expect. Some PCIDev with (possibly) multiple sub OSDevs how this device is exposed by the OS to userspace (opencl0d0, rmsi0, ib0, mlx0_5, ...).

But for block devices this does not fit into the documented and my brain construct.

            <object type="PCIDev" gp_index="969" pci_busid="0000:43:00.0" pci_type="0106 [1022:7901] [1458:1000] 51" pci_link_speed="31.50>
              <object type="OSDev" gp_index="1077" name="sdb" subtype="Disk" osdev_type="0">
                <info name="Size" value="937692504"/>
                <info name="SectorSize" value="512"/>
                <info name="LinuxDeviceID" value="8:16"/>
                <info name="Model" value="INTEL_SSDSC2KG96"/>
                <info name="Revision" value="0121"/>
                <info name="SerialNumber" value="PHYM816002Q0960CGN"/>
              </object>
              <object type="OSDev" gp_index="1078" name="sda" subtype="Disk" osdev_type="0">
                <info name="Size" value="937692504"/>
                <info name="SectorSize" value="512"/>
                <info name="LinuxDeviceID" value="8:0"/>
                <info name="Model" value="INTEL_SSDSC2KG96"/>
                <info name="Revision" value="0121"/>
                <info name="SerialNumber" value="PHYM814402D8960CGN"/>
              </object>
            </object>

For now, I also do not see, that this will change with 3.0, I could only found #540. The XMLs in #399 also look like they fit my mental model, which are 1.11 and 2.1.

Is there something I miss I has there something changed?

Thanks for the feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions