Skip to content

Conversation

@orcunyildiz
Copy link
Collaborator

When generating summary report from the Darshan logs containing DAOS module data, derived metrics like total_read_volume_bytes and total_write_volume_bytes were displaying incorrect values.

The issue was the pydarshan.backend.cffi_backend._df_to_rec utility function. It was using an incomplete NumPy dtype with missing several fields from the darshan_daos_object C struct (pool_uuid, cont_uuid, oid_hi, and oid_lo) when converting DAOS records to a C buffer of records that is consumed by the Darshan-util C code. Similar problem exists for the DFS module data.

This PR fixes the issue by updating the np.recarray dtype in _df_to_rec to include all fields for DAOS and DFS records.

…g problems with the accumulated metrics on pydarshan
@orcunyildiz orcunyildiz requested a review from carns June 17, 2025 16:07
Copy link

@carns carns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch!

@carns carns merged commit 2671ca5 into main Jun 17, 2025
19 of 20 checks passed
@carns carns deleted the yildiz/fix-daos-dfs-repack-layout branch June 17, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants