Skip to content

Count RAM usage of pipe generated by pipe() and fcntl(F_GETPIPE_SZ) #308

Description

@oech3

context: uutils/coreutils#11597

uutils/coreutils uses
https://github.com/uutils/coreutils/blob/0366d3c657ef02ff7c82dcd25926e0485db38ed2/src/uucore/src/lib/features/pipes.rs#L24-L31 to generate 1 MiB pipe used only from the process. However, CodSpeed does not count it as RAM usage since pipe is allocated by Linux kernel itself (not malloc).
I want to count them as RAM usage.

I know it is very rare usecase. But I think something like codspeed_ram_usage!(1024 * 1024); is more generic.

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