Skip to content

Huge memory usage #446

@PyXiion

Description

@PyXiion

I've been testing libcoro with the latest updates, but I've encountered a huge memory usage.

Results based on tzcnt/runtime-benchmarks#11 (peak memory usage tracking PR)

Benchmark libcoro libfork TooManyCooks tbb taskflow cppcoro coros concurrencpp
skynet 20.62 GB 15.97 MB 15.97 MB 15.87 MB 15.87 MB 72.15 MB 15.87 MB 15.87 MB
nqueens 5.37 GB 15.97 MB 15.97 MB 15.87 MB 15.87 MB 72.25 MB 15.87 MB 15.87 MB
fib(39) 17.02 GB 15.97 MB 15.97 MB 15.87 MB 15.87 MB 72.3 MB 15.87 MB 15.87 MB
matmul(2048) 60.93 MB 59.66 MB 57.09 MB 64.79 MB 57.71 MB 130.18 MB 56.79 MB 56.59 MB
io_socket_st 15.97 MB N/A 16.34 MB N/A N/A 15.87 MB N/A N/A

Environment:

  • OS: Manjaro Linux x86_64
  • Kernel: Linux 6.12.64-1-MANJARO
  • CPU: AMD Ryzen 7 8845H (16) @ 5.10 GHz
  • Memory: 27.21 GiB

heaptrack graph shows that coroutine creating consumes the most memory

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions