A method and computer system for tracking kernel resource usage is
disclosed that tracks kernel resources allocated to user processes called
from the user level of the operating system. A tag of the user processes
is generated, which allows a way to identify the user processes and
associate allocated kernel resources to the user process. As a result,
the user processes can be charged for kernel resources.