Re: stap shows kfree() is 5 times more than kallocs, how could be?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all!

On 15/10/18 14:17, Lev Olshvang wrote:
[...]
> I am debugging kernel module and use  SystemTap to monitor requested and freed memory.
> 
> I see that SystemTap statistics shows that kfree() is called 5 times more than kalloc. 
> It happens not only on my module, it happens on VirtualBox vboxsf driver as well.
> 
> See hits count below  kmalloc hits: 21561
>                                   kfree      hits: 102175

"kfree(NULL)" is a legal NO-OP (and basically all other similar
functions are expected to gracefully accept a NULL pointer).

MfG,
	Bernd
-- 
"I dislike type abstraction if it has no real reason. And saving
on typing is not a good reason - if your typing speed is the main
issue when you're coding, you're doing something seriously wrong."
    - Linus Torvalds

Attachment: pEpkey.asc
Description: application/pgp-keys

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux