Kexec rash kernel memory reservation

2016-08-04 Thread Ronit Halder
Hi, kexec reserves memory for loading crash kernel in the boot time for risk of DMA. I want to know, How kexec prevents allocation of memory which is adjacent to DMA memory? regards, Ronit ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org h

Re: Kernel memory

2016-05-17 Thread Valdis . Kletnieks
On Tue, 17 May 2016 12:41:44 +0530, Ronit Halder said: > Hi, > > Where in the memory kernel is located in the boot time? During which exact phase of the boot, and does it actually matter? And physical or virtual address? (Hint: If you're not the bootstrap that unpacks the compressed kernel into

Kernel memory

2016-05-17 Thread Ronit Halder
Hi, Where in the memory kernel is located in the boot time? regards, Ronit ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: The limit of kernel memory in 64bit system

2014-12-01 Thread Christoph Lameter
On Sat, 29 Nov 2014, nick wrote: > Sorry Yiqun, > I was thinking of virtual memory so you are correct. I also haven't looked > into > the kernel memory subsystem(s) in a while so I may be a little behind in my > knownledge > of them. 2^1 The amount of memory that can be

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread nick
Sorry Yiqun, I was thinking of virtual memory so you are correct. I also haven't looked into the kernel memory subsystem(s) in a while so I may be a little behind in my knownledge of them. Regards Nick On 2014-11-29 03:54 PM, Yiqun Chen wrote: > Incorrect. The 64 bit machine theor

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread Yiqun Chen
; > On Sat, Nov 29, 2014 at 12:25:43AM +0900, J.Hwan Kim wrote: > >> Hi, everyone > >> > >> As far as I know, the kernel memory limit is 1GB in 32bit system. > >> Is it also applicable to 64bit system? > >> What's the limit of kernel memory in

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread nick
x27;s memory. So on my system with 8 GB of ram, the kernel can use up to 25 percent or 2 GB of ram. Hope this answers your question, Nick On 2014-11-29 12:45 PM, Greg KH wrote: > On Sat, Nov 29, 2014 at 12:25:43AM +0900, J.Hwan Kim wrote: >> Hi, everyone >> >> As far as I know, the

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread Greg KH
On Sat, Nov 29, 2014 at 12:25:43AM +0900, J.Hwan Kim wrote: > Hi, everyone > > As far as I know, the kernel memory limit is 1GB in 32bit system. > Is it also applicable to 64bit system? > What's the limit of kernel memory in 64bit system? There is no limit :) What do you

The limit of kernel memory in 64bit system

2014-11-29 Thread J.Hwan Kim
Hi, everyone As far as I know, the kernel memory limit is 1GB in 32bit system. Is it also applicable to 64bit system? What's the limit of kernel memory in 64bit system? Thanks in advance Regards, J.Hwan Kim ___ Kernelnewbies mailing

The kernel memory limit of 64bit system

2014-11-29 Thread J.Hwan Kim
Hi, everyone How much is the kernel memory limit of 64 bit system? As far as I know, int 32 bit system the kernel memory limit is 1GB. Is it also applicable to 64bit system? Thanks in advance Regards, J.Hwan Kim ___ Kernelnewbies mailing list

Re: How to mmap kernel memory area to userspace ?

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 17:54:14 +0800, lxgeek said: >I want to mmap a kernel memory area which sk_buf->data pointer > into userspace. I want to do this , because this way can reduce a copy > from kernel to userspace. >How to fix it? Or, which book or project can help me

RE: How to mmap kernel memory area to userspace ?

2014-08-19 Thread Jeff Haran
> -Original Message- > From: kernelnewbies-boun...@kernelnewbies.org > [mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of lxgeek > Sent: Tuesday, August 19, 2014 2:54 AM > To: kernelnewbies > Subject: How to mmap kernel memory area to userspace ? > > hi

How to mmap kernel memory area to userspace ?

2014-08-19 Thread lxgeek
hi all: I want to mmap a kernel memory area which sk_buf->data pointer into userspace. I want to do this , because this way can reduce a copy from kernel to userspace. How to fix it? Or, which book or project can help me ? Thank

Re: Questions about Kernel Memory that I didn't find answers in Google - Please Help

2014-08-14 Thread Lucas Tanure
;>> module >>> > address is: >>> > >>> > sudo cat /proc/modules |grep ip_table >>> > >>> > ip_tables 18106 1 iptable_filter, Live 0xf8bf5000 >>> > >>> > So all the output from your readelf, just add 0xf8bf5000

Re: Questions about Kernel Memory that I didn't find answers in Google - Please Help

2014-08-12 Thread Lucas Tanure
elf, just add 0xf8bf5000 to it and you >> will >> > get the actual virtual address of that section IN MEMORY. >> > >> > Just only in memory. In file, the file offset of the section is >> different. >> > And many parts inside the ELF is also differen

Re: Questions about Kernel Memory that I didn't find answers in Google - Please Help

2014-08-04 Thread Peter Teoh
tion table (all independent from another, meaning that the > > different section CAN BE loaded to different parts in memory). > > > > Thanks. > > > > > > On Sun, Aug 3, 2014 at 11:59 PM, Lucas Tanure wrote: > >> > >> Hi, > >>

Re: Questions about Kernel Memory that I didn't find answers in Google - Please Help

2014-08-04 Thread Lucas Tanure
; separate relocation table (all independent from another, meaning that the > different section CAN BE loaded to different parts in memory). > > Thanks. > > > On Sun, Aug 3, 2014 at 11:59 PM, Lucas Tanure wrote: >> >> Hi, >> >> I'm looking for some site,

Re: Questions about Kernel Memory that I didn't find answers in Google - Please Help

2014-08-03 Thread Peter Teoh
; Hi, > > I'm looking for some site, pdf, book etc, that can answer this questions. > For now I have : > > http://unix.stackexchange.com/questions/5124/what-does-the-virtual-kernel-memory-layout-in-dmesg-imply > > > I want to understand a few things about the memory and the ex

Questions about Kernel Memory that I didn't find answers in Google - Please Help

2014-08-03 Thread Lucas Tanure
Hi, I'm looking for some site, pdf, book etc, that can answer this questions. For now I have : http://unix.stackexchange.com/questions/5124/what-does-the-virtual-kernel-memory-layout-in-dmesg-imply I want to understand a few things about the memory and the execution of Linux kernel. Taking

Re: Kernel memory leak

2014-06-28 Thread Anil Shashikumar Belur
On Saturday 28 June 2014 12:29 PM, Santhosh Kumar wrote: > > Is there a way to trace the allocations of memory from different buckets of > kmalloc ? You could try out kmemleak - https://www.kernel.org/doc/Documentation/kmemleak.txt ___ Kernelnewbies mai

Kernel memory leak

2014-06-28 Thread Santhosh Kumar
I am suspecting a memory leak in a kernel module that does layer 2 switching of data packets. In the vmstat -m output the Num and Total keeps going up for the kmalloc-512.. kmalloc-512 15232 15264512 16 Is this a clear indication of leak in the kernel or can there be false

Re:Re: how to detect kernel memory overflow ?

2014-05-28 Thread RS
Hello em, this can protect the stack, so what about the memory buffer allocated through the kmalloc or vmalloc ? Thanks, HeChuan At 2014-05-29 12:01:10,valdis.kletni...@vt.edu wrote: >On Thu, 29 May 2014 11:13:09 +0800, RS said: >> How to detect the kernel memory overflow errors?

Re: how to detect kernel memory overflow ?

2014-05-28 Thread Valdis . Kletnieks
On Thu, 29 May 2014 11:13:09 +0800, RS said: > How to detect the kernel memory overflow errors? With a sufficiently recent gcc, you can build the kernel with CONFIG_CC_STACKPROTECTOR=y which will put a canary value on the stack and check it for corruption. pgpsJAUnjB0ke.pgp Description:

how to detect kernel memory overflow ?

2014-05-28 Thread RS
Hello How to detect the kernel memory overflow errors? There are many tools to detect the user mode program memory problems, like the memcheck(Valgrind), is there any tools for the kernel ? The Kmemcheck detects some uses of uninitialized memory, can not detect the overflow errors. Thanks

An idea to capture kernel memory access

2014-05-20 Thread RS
Hello I have an idea, to add some changes to the kernel, like the kmemcheck, to help to check the kernel memory. I call it kernel_module_check_framework, it can check the memory buffer overflow errors and others. The memory buffer is what the user want to monitor, not the whole system&#

Kernel Memory Growth

2014-03-18 Thread Pietro Paolini
Hello everyone, I am experiencing a problem using my Linux 2.6.33 and doing this networking test using ab, a tool from Apache which helps me to benchmark the performances of a website, actually I am using that as a tool for generate a lot of traffic and TCP connections. My topology is : [AB

Re: Pass through kernel memory manager

2014-02-19 Thread Peter Teoh
the parameter you passed in section start looks weird, given that your physical memory so limited. (8K and 128K, 2 different bank? if so then only one is available at any one time?), Perhaps some knowledge about linker-script should help: http://blogs.bu.edu/md/2011/11/15/the-dark-art-of-linker

Pass through kernel memory manager

2014-02-07 Thread Paul Chavent
Hi I'm working on an ARM926EJS based SOM (OMAPL138). The ARM has internal memory spaces (8k one and 128k one) where i would like to put some code. I thought to use something like : void foobar (void) __attribute__ ((section ("bar"))); Then link with -Wl,--section-start,bar=1000 But the

Re: Kernel Memory management

2013-11-28 Thread buyitian
The answer from manty is totally wrong. I suggest that you put real question here. 在 2013年11月18日,15:17,"manty kuma" 写道: Here is an interesting question(not mine) in SO related to Kernel memory management. Most of the points are my questions aswell. It needs ex[ert comments. could

Kernel Memory management

2013-11-17 Thread manty kuma
Here is an interesting question(not mine) in SO related to Kernel memory management. Most of the points are my questions aswell. It needs ex[ert comments. could we try to answer questions posted there. http://stackoverflow.com/questions/20041212/does-virtual-memory-area-struct-only-comes-into

Re: Why is kernel memory not pagable ?

2013-10-21 Thread Anatol Pomozov
Hi On Mon, Oct 21, 2013 at 8:53 AM, Nav Kamal wrote: > Am very new to kernel programming and one of the concept says that kernel > memory isn't pagable ? Can please someone explain its reason ? If we try to page off kernel structures we might have a deadlock trying to bring it back.

Why is kernel memory not pagable ?

2013-10-21 Thread Nav Kamal
Am very new to kernel programming and one of the concept says that kernel memory isn't pagable ? Can please someone explain its reason ? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/lis

Re: What rationale behind physical and virtual kernel memory layout ?

2012-10-22 Thread Arun KS
Hi Telenn, On Sat, Oct 20, 2012 at 12:48 AM, telenn barz wrote: > Hello Arun, > > Thanks for answering. > > On Fri, Oct 19, 2012 at 3:33 PM, Arun KS wrote: > >> >> On Fri, Oct 19, 2012 at 3:03 PM, telenn barz wrote: >> >>> >>> Q: In the 4G/4G split case, I don't see why we have to necessarily f

Re: What rationale behind physical and virtual kernel memory layout ?

2012-10-19 Thread telenn barz
Hello Arun, Thanks for answering. On Fri, Oct 19, 2012 at 3:33 PM, Arun KS wrote: > > On Fri, Oct 19, 2012 at 3:03 PM, telenn barz wrote: > >> >> Q: In the 4G/4G split case, I don't see why we have to necessarily flush >> the TLB when switching from user-space to kernel-space ? Why the TLB >> c

Re: What rationale behind physical and virtual kernel memory layout ?

2012-10-19 Thread Arun KS
Hi Telenn, On Fri, Oct 19, 2012 at 3:03 PM, telenn barz wrote: > Hi all, > > This a vast topic. But I believe it's worthwhile exposing in greater > detail the "Why this design has been chosen ?", before the "How this design > has been implemented ?". And I think this is a common lack (or at leas

What rationale behind physical and virtual kernel memory layout ?

2012-10-19 Thread telenn barz
Hi all, This a vast topic. But I believe it's worthwhile exposing in greater detail the "Why this design has been chosen ?", before the "How this design has been implemented ?". And I think this is a common lack (or at least not enough developed) in documentations, even in the more outstanding of

Re: Kernel Memory

2012-06-22 Thread Vijay Chauhan
t; > http://kerneltrap.org/node/6404 > > http://kerneltrap.org/node/8206 > > > Regards > > Kishore > > > > On Thu, Jun 21, 2012 at 5:57 PM, Vijay Chauhan > wrote: >> >> Hello, >> >> I am newbie. >> It has

Re: Kernel Memory

2012-06-21 Thread michi1
Hi! On 17:57 Thu 21 Jun , Vijay Chauhan wrote: > Hello, > > I am newbie. > It has been said "kernel memory is not pageable" > What does it mean? There is no concept of kernel virtual address? > > Any simple explanation will help me to udnerstand. The right

Re: Kernel Memory

2012-06-21 Thread AFT
Vijay Chauhan writes: > Hello, > > I am newbie. > It has been said "kernel memory is not pageable" > What does it mean? There is no concept of kernel virtual address? > Yes. Kernel works on static adress space. > Any simple explanation will help me to udnerstand.

Re: Kernel Memory

2012-06-21 Thread Arun KS
Hello Vijay, On Thu, Jun 21, 2012 at 5:57 PM, Vijay Chauhan wrote: > Hello, > > I am newbie. > It has been said "kernel memory is not pageable" > What does it mean? There is no concept of kernel virtual address? You might have heard about 3G/1G split. This 1GB is t

Re: Kernel Memory

2012-06-21 Thread kishore sheik ahamed
two discussion thread which say kernel is non-pageable and now due to growing kernel Data structures it is allowed http://kerneltrap.org/node/6404 http://kerneltrap.org/node/8206 Regards Kishore On Thu, Jun 21, 2012 at 5:57 PM, Vijay Chauhan wrote: > Hello, > > I am newbie. >

Re: Kernel Memory

2012-06-21 Thread HowKernel StuffWorks
Hi, I am a kernel newbie too, Kernel memory is not pagable, because kernel itself is responsible for paging. See this discussion, http://kerneltrap.org/node/6404 Paging happens for regular processes, i.e each process memory is divided into a page of certain size(4kb in Linux), so it can swap

Kernel Memory

2012-06-21 Thread Vijay Chauhan
Hello, I am newbie. It has been said "kernel memory is not pageable" What does it mean? There is no concept of kernel virtual address? Any simple explanation will help me to udnerstand. Thanks, Vijay ___ Kernelnewbies mailing list Ker

Re: kernel memory allocation

2011-12-22 Thread Dave Hylands
Hi, On Thu, Dec 22, 2011 at 6:33 PM, J.Hwan Kim wrote: > Hi, everyone > > How can I allocated contiguous kernel memory over 128MB ? > When I use _get_free_pages() function, it returns error. > I guess the memory size is greater than the amount which the function > can allo

kernel memory allocation

2011-12-22 Thread J.Hwan Kim
Hi, everyone How can I allocated contiguous kernel memory over 128MB ? When I use _get_free_pages() function, it returns error. I guess the memory size is greater than the amount which the function can allocate. Thanks in advance. Best Regards, J.Hwan Kim

Re: About kernel memory limit

2011-11-11 Thread Geraint Yang
Thank you ! I will try kmap/kunmap later. On Fri, Nov 11, 2011 at 4:20 PM, Dave Hylands wrote: > Hi Geraint, > > On Thu, Nov 10, 2011 at 8:44 PM, Geraint Yang > wrote: > > Hi Dave, > > Thank you for your help ! > > Does it mean that I could use all of the memory my computer has? But one > of >

Re: About kernel memory limit

2011-11-11 Thread Dave Hylands
Hi Geraint, On Thu, Nov 10, 2011 at 8:44 PM, Geraint Yang wrote: > Hi Dave, > Thank you for your help ! > Does it mean that I could use all of the memory my computer has? But one of > my classmates told me that kernel could only use 1G from a 4G > memory.computer...Is there anything I have misund

RE: About kernel memory limit

2011-11-10 Thread adheer chandravanshi
...@gmail.com Date: Fri, 11 Nov 2011 13:28:53 +0800 Subject: Re: About kernel memory limit To: g...@uniserve.com CC: dhyla...@gmail.com; kernelnewbies@kernelnewbies.org Thanks. But I think that command 'free' just tell the memory used in kernel space and user space.It is still unknown

Re: About kernel memory limit

2011-11-10 Thread Geraint Yang
Thanks. But I think that command 'free' just tell the memory used in kernel space and user space.It is still unknown to us that how much memory is used by kernel. On Fri, Nov 11, 2011 at 1:15 PM, Dave Stevens wrote: > Quoting Geraint Yang : > > Hi Dave, >> Thank you for your help ! >> Does it

Re: About kernel memory limit

2011-11-10 Thread Dave Stevens
Quoting Geraint Yang : > Hi Dave, > Thank you for your help ! > Does it mean that I could use all of the memory my computer has? But one of > my classmates told me that kernel could only use 1G from a 4G > memory.computer...Is there anything I have misunderstood ? I'm sitting in front of a Ubuntu

Re: About kernel memory limit

2011-11-10 Thread Haojian Zhuang
On Fri, Nov 11, 2011 at 12:44 PM, Geraint Yang wrote: > Hi Dave, > Thank you for your help ! > Does it mean that I could use all of the memory my computer has? But one of > my classmates told me that kernel could only use 1G from a 4G > memory.computer...Is there anything I have misunderstood ? >

Re: About kernel memory limit

2011-11-10 Thread Geraint Yang
Hi Dave, Thank you for your help ! Does it mean that I could use all of the memory my computer has? But one of my classmates told me that kernel could only use 1G from a 4G memory.computer...Is there anything I have misunderstood ? On Fri, Nov 11, 2011 at 4:58 AM, Dave Hylands wrote: > Hi, > >

Re: About kernel memory limit

2011-11-10 Thread Dave Hylands
Hi, On Thu, Nov 10, 2011 at 6:23 AM, Geraint Yang wrote: > Hi there, > I am a newbie to Linux kernel programming. I am going to make a module > which will cost much memory in kernel, I just want to know how much > memory I can get by calling memory allocate API in kernel. All of it. >From kerne

About kernel memory limit

2011-11-10 Thread Geraint Yang
Hi there, I am a newbie to Linux kernel programming. I am going to make a module which will cost much memory in kernel, I just want to know how much memory I can get by calling memory allocate API in kernel. Any help will be appreaciated. ___ Kernelnewbie

Re: Paging of Kernel Memory

2011-09-13 Thread Rik van Riel
On 09/07/2011 12:41 AM, Mulyadi Santosa wrote: > Hi :) > > On Wed, Sep 7, 2011 at 09:44, ashish anand wrote: >> Hi >> on wed 7th sep Christopher Harvey wrote It means that it can't be swapped to your swap partition, even if you're not using it. >> >> this thing I understood it pretty

Re: Paging of Kernel Memory

2011-09-08 Thread Asutosh Das
wrote: > Hi, > > i was going through the Linux Kernel Development book. It mention the > following: > > "Additionally, kernel memory is not pageable.Therefore, every byte of > memory you consume is one less byte of available physical memory." > > What is

Re: Paging of Kernel Memory

2011-09-06 Thread Mulyadi Santosa
Hi :) On Wed, Sep 7, 2011 at 09:44, ashish anand wrote: > Hi > on wed 7th sep  Christopher Harvey wrote >>>It means that it can't be swapped to your swap partition, even if >>>you're not using it. > >  this thing I understood it pretty well but what about the line > "Therefore, every byte of >  m

Paging of Kernel Memory

2011-09-06 Thread ashish anand
Kannan) > 3. Re: Finding physical and logical core number in a kernel > module ? (Alexandre Courbot) > 4. How to identify Connected USB Storage device (Harddisk, flash > Memoryor SSD) (mani) > 5. Paging of Kernel Memory (Vijay Chauhan) > 6. Re: Paging of Kernel

Re: Paging of Kernel Memory

2011-09-06 Thread Christopher Harvey
On Tue, 6 Sep 2011 17:48:12 +0530, Vijay Chauhan wrote: > Hi, > > i was going through the Linux Kernel Development book. It mention the > following: > > "Additionally, kernel memory is not pageable.Therefore, every byte of > memory you consume is one less byte of

Paging of Kernel Memory

2011-09-06 Thread Vijay Chauhan
Hi, i was going through the Linux Kernel Development book. It mention the following: "Additionally, kernel memory is not pageable.Therefore, every byte of memory you consume is one less byte of available physical memory." What is the meaning of 'Kernel memory is not pageable&#x

Re: Query regarding kernel memory

2011-07-25 Thread Dave Hylands
Hi Vaibhav, On Mon, Jul 25, 2011 at 9:40 PM, Vaibhav Jain wrote: > Hi Dave, Santhosh, > > Thanks for the reply! I was talking about the following paragraph from the > reference you provided : > > The kernel (on the x86 architecture, in the default configuration) splits > the 4-GB virtual address

Re: Query regarding kernel memory

2011-07-25 Thread Vaibhav Jain
Hi Dave, Santhosh, Thanks for the reply! I was talking about the following paragraph from the reference you provided : The kernel (on the x86 architecture, in the default configuration) splits the 4-GB virtual address space between user-space and the kernel; the same set of mappings is used in bo

Re: Query regarding kernel memory

2011-07-25 Thread santhosh kumars
hi, On Tue, Jul 26, 2011 at 3:47 AM, Vaibhav Jain wrote: > Hi, > > I read a few articles on linux virtual memory management such as this one : > http://lwn.net/Articles/75174/ > > which say that earlier linux kernel could only use memory slightly below 1 > GB. They have In Linux to separate the u

Re: Query regarding kernel memory

2011-07-25 Thread Dave Hylands
Hi Vaibhav, On Mon, Jul 25, 2011 at 3:17 PM, Vaibhav Jain wrote: > Hi, > > I read a few articles on linux virtual memory management such as this one : > http://lwn.net/Articles/75174/ > > which say that earlier linux kernel could only use memory slightly below 1 > GB. They have > given the reason

Query regarding kernel memory

2011-07-25 Thread Vaibhav Jain
Hi, I read a few articles on linux virtual memory management such as this one : http://lwn.net/Articles/75174/ which say that earlier linux kernel could only use memory slightly below 1 GB. They have given the reason for it but I am unable to understand.They further describe the use of High memor

RE: kernel memory allocation

2011-06-03 Thread Jeff Haran
> -Original Message- > From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- > boun...@kernelnewbies.org] On Behalf Of João Eduardo Luís > Sent: Friday, June 03, 2011 12:40 PM > To: Amirali Shambayati > Cc: kernelnewbies > Subject: Re: kernel memo

Re: kernel memory allocation

2011-06-03 Thread João Eduardo Luís
Hello, Once again, I would pretty much enjoy if you CC'ed the list on replies. On Jun 3, 2011, at 8:49 PM, Amirali Shambayati wrote: > I set breakpoint before kmalloc. panic happens after kmalloc. > >> 2011/6/4 Amirali Shambayati >> ofcourse it's null before allocate it. I make an instantiati

Re: kernel memory allocation

2011-06-03 Thread João Eduardo Luís
Hi. In future replies, please CC the list. Does it panic in during the kmalloc, or afterwards? Are you checking if 'newBun' is NULL? I may be missing something obvious in that code, but unless you are out of memory or with some past corruption, I don't think that should panic the kernel. In a

Re: kernel memory allocation

2011-06-03 Thread João Eduardo Luís
Hi. From [1] I'm lead to believe the only difference between the regular kmalloc() arguments and those of kmalloc_node() is the one specifying which node you want to allocate the memory on. Aside from the third argument, which seems to be related with NUMA (with which I never worked on kernel-

kernel memory allocation

2011-06-03 Thread Amirali Shambayati
Hello all, I just want to allocate memory for a struct instantiation. Would anyone guide me what arguments I should pass to "kmalloc_node"? Regards, -- Amirali Shambayati Bachelor Student Computer Engineering Department Sharif University of Technology Tehran, Iran

Check Kernel Memory Allocation

2011-06-03 Thread Dev Null
Hello, I wanted to know how much kernel and userspace memory is available on the Linux system during run-time either by some C code or some procfile. Do you know how to do that? Thanks, Dev ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Check Kernel Memory Allocation

2011-06-02 Thread Dave Hylands
Hi Dev, > I wanted to know how much kernel and userspace memory is available on the > Linux system during run-time either by some C code or some procfile. > > Do you know how to do that? You can look in /proc/meminfo http://unixfoo.blogspot.com/2008/02/know-about-procmeminfo.html The memory is s

Re: Check Kernel Memory Allocation

2011-06-02 Thread Mulyadi Santosa
On Fri, Jun 3, 2011 at 01:05, Dev Null wrote: > I wanted to know how much kernel and userspace memory is available on the > Linux system during run-time either by some C code or some procfile. have you checked /proc/meminfo and its handler? -- regards, Mulyadi Santosa Freelance Linux trainer a

Fwd: Check Kernel Memory Allocation

2011-06-02 Thread Dev Null
-- Forwarded message -- From: Dev Null Date: Tue, May 31, 2011 at 4:08 PM Subject: Check Kernel Memory Allocation To: kernelnewbies Newbies Hello, I wanted to know how much kernel and userspace memory is available on the Linux system during run-time either by some C code or

Re: kernel memory usage

2010-12-30 Thread naveen yadav
Yes Bharath, you are right. On Thu, Dec 30, 2010 at 9:07 AM, Bharath H S wrote: > I think Naveen means, all the memory does not appear in the output of > /proc/meminfo, the reason is kernel memory is discounted and not > accounted for in the output. May be his goal is to calculate

Re: kernel memory usage

2010-12-29 Thread Bharath H S
I think Naveen means, all the memory does not appear in the output of /proc/meminfo, the reason is kernel memory is discounted and not accounted for in the output. May be his goal is to calculate the total memory in the system and that output of /proc/meminfo does not give that. On Wed, Dec 29

Re: kernel memory usage

2010-12-29 Thread Mulyadi Santosa
On Wed, Dec 29, 2010 at 20:30, naveen yadav wrote: > Hi all, > > I want to calculate the total kernel memory usage. First, what's your definition of "kernel memory" ? Everything that is mapped inside kernel address space only? -- regards, Mulyadi Santosa Freelance Linu

kernel memory usage

2010-12-29 Thread naveen yadav
Hi all, I want to calculate the total kernel memory usage. cat /proc/meminfo MemTotal: 4131168 kB MemFree:336848 kB Buffers:261776 kB Cached:3115752 kB SwapCached:264 kB Active:1536344 kB Inactive: 1922636 kB HighTotal: 3260052 kB HighFree