jaypipes / ghw

Go HardWare discovery/inspection library
Apache License 2.0
1.62k stars 174 forks source link

too many open files error when using ghw in gotop client #324

Closed rare-magma closed 2 years ago

rare-magma commented 2 years ago

hi!

Thanks for putting this library together, it's quite useful!

I'm trying to integrate it with gotop (cli activity monitor) to gather info about the disks in a machine in this PR: https://github.com/xxxserxxx/gotop/pull/221

Unfortunately after a few minutes ghw.Block() or ghw.Host() end up causing a "too many open files" error. Any idea on what might be the cause for this issue?

rare-magma commented 2 years ago

Actually nevermind, it seems that the issue is related to the https://github.com/anatol/smart.go library and not ghw. Sorry for the noise!