[Devel] [PATCH vz7] Create debugfs file with virtio balloon usage information

Alexander Atanasov alexander.atanasov at virtuozzo.com
Fri Sep 23 10:48:51 MSK 2022


Hello,

On 22.09.22 20:43, Konstantin Khorenko wrote:
> On 07.09.2022 10:09, Alexander Atanasov wrote:
>>> 2. Let's print also vdev->features (may be with clarification the
>>> meaning of bits. Or at least - the value itself, so we can check bits
>>> meaning manually later if needed)
>>
>> It was done and it was rejected. Reason - there is separate file with
>> feature bits - userspace can decode them.
> 
> Please, post here the name of this secret file. :)

Here is an example from my test setup for the balloon:

Without deflate on OOM:
# cat /sys/devices/pci0000:00/0000:00:03.0/virtio0/features
0100000000000000000000000000110010000000000000000000000000000000

With deflate on OOM:
# cat /sys/devices/pci0000:00/0000:00:03.0/virtio0/features
0110000000000000000000000000110010000000000000000000000000000000

To decipher balloon bits are defined in include/uapi/linux/virtio_balloon.h



-- 
Regards,
Alexander Atanasov



More information about the Devel mailing list