{"push_id":2012116318,"size":1,"distinct_size":1,"ref":"refs/heads/gpu-metrics-1436","head":"331ada519058cde8bee4d42f62fce796fbec8460","before":"50bbcd7ab61899a78dfc8dbf5d113fec6cbf5355","commits":[{"sha":"331ada519058cde8bee4d42f62fce796fbec8460","author":{"name":"Rohit Agarwal","email":"187e9d17c263947ec6e19bfaec851bb10b19f55a@google.com"},"message":"Add per container GPU metrics.\n\nThe metrics are collected using NVML. We initialize NVML when we start\nthe manager and shut it down when we stop the manager. For each\ncontainer we know the list of devices it is allowed to access from its\ndevices cgroup. The devices.list file in the devices cgroup lists the\nmajor:minor number of the allowed devices. The NVML library doesn't\nprovide a way to get the device handle given the device's minor number\nbut we have a way of getting the minor number once we have the device\nhandle. So, we create a map from minor numbers to device handles and\ncache it. When we first check for gpu metrics for the container, we\ncache the list of attached devices for this container. We use this\ncached list to query metrics for the container.","distinct":true,"url":"https://api.github.com/repos/mindprince/cadvisor/commits/331ada519058cde8bee4d42f62fce796fbec8460"}]}
{"actor":{"display_login":"mindprince"}}