Giampaolo Rodola

Results 524 comments of Giampaolo Rodola

For a possible solution see https://github.com/giampaolo/psutil/issues/975 pointing to https://stackoverflow.com/a/14355710/376587 (use `sysctl + HW_CPU_FREQ` or `sysctl + KERN_CLOCKRATE`). It looks like both approaches report the advertised frequency (it never changes), same...

According to [doc](https://psutil.readthedocs.io/en/latest/#psutil.cpu_freq) we should return 0 if min and max frequency cannot be determined, so we can ignore those on M1. This was tracked in #1456 (we return error...

Fixed by https://github.com/giampaolo/psutil/pull/1895.

Oh you're right. I misread https://github.com/giampaolo/psutil/issues/1892#issuecomment-748491277.

The problem is that on my virtualized macOS I get this: HW_CPU_FREQ: 2590000000 KERN_CLOCKRATE -> clockinfo.hz: 100 ...so it appears they are 2 different things.

_From [g.rodola](https://code.google.com/u/g.rodola/) on April 07, 2014 09:28:49_ I've been meaning to look into this for a while now but I've never really had the chance to look into how Linux...

_From [[email protected]](https://code.google.com/u/108276830347560657704/) on April 07, 2014 09:54:48_ so configuring cgroups i think is probably out of scope, things there are still in a bit of flux (direct sys fs mods...

The main problem I have with cgroups is that I don't use/know them and it looks like a pretty extended subject. Before a PR I would like to see a...

If this were to land in psutil it's likely gonna be a read-only method returning a dict. Something like: ```python @wrap_exceptions def cgroups(self): with open_binary("%s/%s/cgroup" % (self._procfs_path, self.pid)) as f:...

I'm afraid I don't know enough about Linux cgroups to design this feature. For instance: should we have a read-only `Process.cgroups()` method returning a dict or also allow it to...