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
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
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
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
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
; > 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
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
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
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
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
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
> -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
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
;>> 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
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
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,
> >>
; 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,
; 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
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
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
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
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?
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:
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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.
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
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.
>
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
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
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
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
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
>
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
...@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
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
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
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 ?
>
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,
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
> -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
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
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
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-
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
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
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
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
-- 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
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
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
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
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
78 matches
Mail list logo