TGSAI / mdio-python

Cloud native, scalable storage engine for various types of energy data.
https://mdio.dev/
Apache License 2.0
37 stars 13 forks source link

Allow configuring CPU usage during SEG-Y import/export #392

Closed tasansal closed 6 months ago

tasansal commented 6 months ago

Overview

This PR includes modifications to the blocked_io.py and mdio.py scripts to enhance CPU utilization reconfigurability through environment variables.

The MDIO__IMPORT__CPU_COUNT and MDIO__EXPORT__CPU_COUNT allow users to specify how many cores to use.

If the variables don't exist, it will use all the available cores of the machine.

Changes in blocked_io.py

Changes in mdio.py

Summary

These changes aim to provide better control over CPU usage through environment variables.