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

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

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 handled by a processor

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 really want to know

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread nick
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 kernel memory limit is 1GB

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread Yiqun Chen
, 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 really want to know this for? greg k-h

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 theoretically

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 you

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 all: I want to mmap

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 ? Look at how

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

2014-08-14 Thread Lucas Tanure
: 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 from a X86 and grub I have: 1) Grub loads kernel and root file system in memory

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

2014-08-12 Thread Lucas Tanure
/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 from a X86 and grub I have: 1) Grub loads kernel and root file system in memory, and the vmlinux has the code to decompress it self

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

2014-08-04 Thread Peter Teoh
...@linux.com wrote: 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

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 from

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

2014-08-03 Thread Peter Teoh
, 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 from

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

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

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

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: PGP

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

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's

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:

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 mantyk...@gmail.com 写道: 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

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

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/listinfo

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 navkama...@gmail.com 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

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: 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 telenn.b...@gmail.com 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

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

Re: Kernel Memory

2012-06-21 Thread kishore sheik ahamed
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 kernel.vi...@gmail.comwrote: Hello, I am newbie. It has been said kernel memory is not pageable What does it mean

Re: Kernel Memory

2012-06-21 Thread Arun KS
Hello Vijay, On Thu, Jun 21, 2012 at 5:57 PM, Vijay Chauhan kernel.vi...@gmail.com 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 the virtual

Re: Kernel Memory

2012-06-21 Thread AFT
Vijay Chauhan kernel.vi...@gmail.com 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. I'm not sure

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: kernel memory allocation

2011-12-22 Thread Dave Hylands
Hi, On Thu, Dec 22, 2011 at 6:33 PM, J.Hwan Kim frog1...@gmail.com 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 allocate. You

Re: About kernel memory limit

2011-11-11 Thread Dave Hylands
Hi Geraint, On Thu, Nov 10, 2011 at 8:44 PM, Geraint Yang geraint0...@gmail.com 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

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 dhyla...@gmail.com wrote: Hi Geraint, On Thu, Nov 10, 2011 at 8:44 PM, Geraint Yang geraint0...@gmail.com wrote: Hi Dave, Thank you for your help ! Does it mean that I could use all of the memory

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. ___

Re: About kernel memory limit

2011-11-10 Thread Dave Hylands
Hi, On Thu, Nov 10, 2011 at 6:23 AM, Geraint Yang geraint0...@gmail.com 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

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 dhyla...@gmail.com

Re: About kernel memory limit

2011-11-10 Thread Haojian Zhuang
On Fri, Nov 11, 2011 at 12:44 PM, Geraint Yang geraint0...@gmail.com 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

Re: About kernel memory limit

2011-11-10 Thread Dave Stevens
Quoting Geraint Yang geraint0...@gmail.com: 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

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 g...@uniserve.com wrote: Quoting Geraint Yang geraint0...@gmail.com: Hi Dave,

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 available physical memory. What

Paging of Kernel Memory

2011-09-06 Thread ashish anand
) 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 Memory (Christopher Harvey) -- Message: 1 Date: Tue

Re: Paging of Kernel Memory

2011-09-06 Thread Mulyadi Santosa
Hi :) On Wed, Sep 7, 2011 at 09:44, ashish anand ashishanand2...@gmail.com 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,

Re: Query regarding kernel memory

2011-07-25 Thread Dave Hylands
Hi Vaibhav, On Mon, Jul 25, 2011 at 3:17 PM, Vaibhav Jain vjoss...@gmail.com 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

Re: Query regarding kernel memory

2011-07-25 Thread Dave Hylands
Hi Vaibhav, On Mon, Jul 25, 2011 at 9:40 PM, Vaibhav Jain vjoss...@gmail.com 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

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

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

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

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

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 amirali.shambay...@gmail.com ofcourse it's null before allocate

Fwd: Check Kernel Memory Allocation

2011-06-02 Thread Dev Null
-- Forwarded message -- From: Dev Null devnull...@gmail.com Date: Tue, May 31, 2011 at 4:08 PM Subject: Check Kernel Memory Allocation To: kernelnewbies Newbies kernelnewb...@nl.linux.org Hello, I wanted to know how much kernel and userspace memory is available on the Linux

Re: Check Kernel Memory Allocation

2011-06-02 Thread Mulyadi Santosa
On Fri, Jun 3, 2011 at 01:05, Dev Null devnull...@gmail.com 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

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