On 3/22/24 13:23, Jim Henderson wrote:
On Fri, 22 Mar 2024 14:50:03 +0300, Andrei Borzenkov wrote:
[jhenderson@TheEarth ~]$ ls -l /sys/firmware/efi/efivars/ Well, the total size is about 45K. Of course, we do not know the implementation details and overhead, but still it is very unlikely that firmware needs additional 80K to manage 45K of data. It sounds more like either firmware needs to be tricked into garbage collection or it leaks variable storage. In both cases reinitializing settings may actually bring available space up to the reasonable size. Good point and catch. I hadn't actually thought to add up the size of all
On Thu, Mar 21, 2024 at 8:04 PM Jim Henderson <hendersj@gmail.com> wrote: the nodes in the filesystem. I'll mention that when I talk to support next.
Hi Jim, Any idea how we "trick" the firmware into garbage collection ? I have rebooted and that didn't change anything the amount used. I also summed up the sizes and it is quite smaller than the used amount. df -h /sys/firmware/efi/efivars Filesystem Size Used Avail Use% Mounted on efivarfs 192K 167K 21K 89% /sys/firmware/efi/efivars FYI, if you have pwsh installed on Linux is is really easy to sum up the values: ( dir /sys/firmware/efi/efivars | Measure-Object -Sum Length ).Sum 125253 125253 is only 122.3K quite different from the 167K that df is reporting as used. I will be interested to hear what you find out after talking to support. Feel free to email me directly.... Thanks -- Regards, Joe