Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ksize(9) [centos man page]

KSIZE(9)						    Memory Management in Linux							  KSIZE(9)

ksize - get the actual amount of memory allocated for a given object SYNOPSIS
size_t ksize(const void * objp); ARGUMENTS
objp Pointer to the object DESCRIPTION
kmalloc may internally round up allocations and return more memory than requested. ksize can be used to determine the actual amount of memory allocated. The caller may use this additional memory, even though a smaller amount of memory was initially specified with the kmalloc call. The caller must guarantee that objp points to a valid object previously allocated with either kmalloc or kmem_cache_alloc. The object must not be freed during the duration of the call. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 KSIZE(9)

Check Out this Related Man Page

tapset::memory(3stap)													     tapset::memory(3stap)

tapset::memory - systemtap memory tapset DESCRIPTION
This family of probe points is used to probe memory-related events. vm_fault_contains Test return value for page fault reason See function::vm_fault_contains(3stap) for details. vm.pagefault Records that a page fault occurred See probe::vm.pagefault(3stap) for details. vm.pagefault.return Indicates what type of fault occurred See probe::vm.pagefault.return(3stap) for details. addr_to_node Returns which node a given address belongs to within a NUMA system See function::addr_to_node(3stap) for details. vm.write_shared Attempts at writing to a shared page See probe::vm.write_shared(3stap) for details. vm.write_shared_copy Page copy for shared page write See probe::vm.write_shared_copy(3stap) for details. vm.mmap Fires when an mmap is requested See probe::vm.mmap(3stap) for details. vm.munmap Fires when an munmap is requested See probe::vm.munmap(3stap) for details. vm.brk Fires when a brk is requested (i.e. the heap will be resized) See probe::vm.brk(3stap) for details. vm.oom_kill Fires when a thread is selected for termination by the OOM killer See probe::vm.oom_kill(3stap) for details. vm.kmalloc Fires when kmalloc is requested See probe::vm.kmalloc(3stap) for details. vm.kmem_cache_alloc Fires when kmem_cache_alloc is requested See probe::vm.kmem_cache_alloc(3stap) for details. vm.kmalloc_node Fires when kmalloc_node is requested See probe::vm.kmalloc_node(3stap) for details. vm.kmem_cache_alloc_node Fires when kmem_cache_alloc_node is requested See probe::vm.kmem_cache_alloc_node(3stap) for details. vm.kfree Fires when kfree is requested See probe::vm.kfree(3stap) for details. vm.kmem_cache_free Fires when kmem_cache_free is requested See probe::vm.kmem_cache_free(3stap) for details. SEE ALSO
function::vm_fault_contains(3stap), function::addr_to_node(3stap), probe::vm.pagefault(3stap), probe::vm.pagefault.return(3stap), probe::vm.write_shared(3stap), probe::vm.write_shared_copy(3stap), probe::vm.mmap(3stap), probe::vm.munmap(3stap), probe::vm.brk(3stap), probe::vm.oom_kill(3stap), probe::vm.kmalloc(3stap), probe::vm.kmem_cache_alloc(3stap), probe::vm.kmalloc_node(3stap), probe::vm.kmem_cache_alloc_node(3stap), probe::vm.kfree(3stap), probe::vm.kmem_cache_free(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::memory(3stap)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tar: tape blocksize error

When trying to extract a tar file in HP-UX using tar -xvf command it exits with the following error :"Tar: tape blocksize error". Tar file is created using the following command with MKS toolkit(Unix Simulation Kit for Windows env) under Windows 2000 Professional: "$tar -cvf test.tar test.txt... (1 Reply)
Discussion started by: ramkumar
1 Replies

2. UNIX for Dummies Questions & Answers

Blocksize problem restoring file from tape

I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize. The part of the script that does the tar looks like this: tar cvfX... (11 Replies)
Discussion started by: citrowske
11 Replies

3. UNIX for Dummies Questions & Answers

How to change blocksize for in tar command

How can I change the blocksize in tar command? tar cvf test.tar a 1K If we need to set the blocksize to 20, how to do that? Please advise. Thank you. (10 Replies)
Discussion started by: KhawHL
10 Replies

4. UNIX for Advanced & Expert Users

tar: tape blocksize error

Hi, I have tar: tape blocksize error when launching # gunzip < TierDB.tar.gz |tar -xvf /data/ora/DREC tar: tape blocksize error Can you please help me ? It is urgent. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

5. UNIX for Dummies Questions & Answers

tar: blocksize

Hi, When doing tar -xvf to untar, some tar versions display the blocksize: “tar: blocksize = 6” my goal is to avoid this message. One way of doing it is to specify the blocksize: tar -xvfb <tar_file> 6 Is there a setting in tar or a tar version to avoid this type of message without... (0 Replies)
Discussion started by: melanie_pfefer
0 Replies

6. UNIX for Dummies Questions & Answers

tar: blocksize = 0 - Error message?

Hi All, While viewing tar file using "tar tf file.tar" command, I have received "tar: blocksize = 0" message and while extracting a particular file from the same tar file (file.tar) I have received the same message and nothing is extracted. Above commands ran in a shell script so, I... (3 Replies)
Discussion started by: Tlogine
3 Replies

7. Solaris

Tar blockSize problem

Hi, i have got a tar file some 200MB big and i have ftp'ed the tar file over from one server to another but it does not seem to extract. its giving the following message: tar xvf saptar tar: blocksize = 2 Its the first time i used tar so I not got any ideas why its giving this message?... (2 Replies)
Discussion started by: scriptingmani
2 Replies

8. Linux

Linux Thread Stack Size pthread_attr_setstacksize

I have MultiThreaded Application in Linux. I am Setting the stack size using pthread_attr_setstacksize. The stack size i set is greter than PTHREAD_STACK_MIN i.e. 16384 bytes for my system. i am setting the stack size to 17408 bytes, and my application crashes due to insufficient stack size.... (1 Reply)
Discussion started by: Kedar Sabnis
1 Replies

9. Solaris

Limit: stacksize: Can't remove limit

Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine? Thanks in advance. (3 Replies)
Discussion started by: Diabolist9
3 Replies