0
votes
0answers
18 views

how to limit dma address to specific range in linux kernel?

I want to limit the dma address the device can access to 0x0100_0000~0x03ff_ffff. But I don't know how to set the dma_mask and coherent_dma_mask. It's easy to set the "dma mask" for a range start ...
2
votes
1answer
590 views

What would happen if the amount of free memory (vm.min_free_kbytes) was too low?

I came across the following parameter in kernel settings (in sysctl): vm.min_free_kbytes This is the amount of free memory (RAM) that's always free no matter what. In my case, I have only 1 GiB of ...
2
votes
3answers
245 views

how is page size determined in virtual address space?

Linux uses a virtual memory system where all of the addresses are virtual addresses and not physical addresses. These virtual addresses are converted into physical addresses by the processor. To ...
4
votes
1answer
436 views

kernel: disabling /dev/kmem and /dev/mem

I understand that /dev/kmem and /dev/mem provide access to the memory (i.e. raw RAM) of the system. I am also aware, that /dev/kmem can be completely disabled in kernel and that access can be ...
1
vote
1answer
273 views

Why is swap used when a lot of memory is still free? [duplicate]

In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used. I always thought of swap as an overflow when memory has been depleted. Why would it ...
3
votes
3answers
496 views

Why does MemTotal in /proc/meminfo change?

I monitor value from /proc/meminfo file, namely the MemTotal: number. It changes if a ram module breaks, roughly by size of the memory module - this is obvious. I know the definition for the field ...
-2
votes
1answer
71 views

Loading a kernel driver to a specific memory address

How can I load a kernel driver at a specific memory address? How could it be done with the following methods? commands/scripts like insmod or modprobe using C code (not sure if there may exist ...
0
votes
1answer
38 views

HDD indicator blinks when I run out of memory, but I have no swap configured [duplicate]

I'm running Arch Linux, with 8 GB memory and no swap defined. Sometimes it ran out of memory, then my system get a little bit stuck, and I can see the HDD indicator blinking. Then I restart X, which ...
0
votes
2answers
247 views

Linux kernel with absolutely no virtual memory [duplicate]

I am interested in obtaining (or building myself) a version of the Linux kernel that has absolutely no virtual memory and none of its attendant overhead. No swap file, no nothing. What are my ...
3
votes
3answers
70 views

Contents of stack area of a process

I've been going through some Unix text books and I can't have a clear picture on the contents of the stack area of the process. Can anyone please explain or point out some references?
1
vote
2answers
1k views

Change the size of my memory pages?

I would like to change my kernel's page size from 4KB to 4MB as I have had a large addition of RAM to my computer and I am never running out of anymore. The idea is that programs requiring large ...
2
votes
4answers
145 views

How to make sure, that certain functionality (like Alt+Ctrl+F1 switching into tty) is available in havily swapping system?

At the moment, when I accidentally launch application that eats a lot of memory (that causes system to heavily swap), the system become so unresponsive (waiting hours just to see the mouse move/or ...
16
votes
2answers
3k views

How to blacklist a correct bad RAM sector according to MemTest86+ error indication?

MemTest86+ (the version included with Ubuntu 13.04) says Failing address: 002f796c48 - 759.5 MB What should I specify in the memmap kernel parameter to bypass this area? I've tried running ...
3
votes
1answer
158 views

How to measure the clock pulse of my computer manually?

My PC has two processors, and I know that each one runs at 1.86 GHz. I have just read about clock cycles and I only have a (very) rough understanding, so I apologize beforehand if my question is so ...
1
vote
1answer
179 views

What information exactly is in the access control bits of a page table?

I'm currently learning for an exam in operating systems. This includes learning some basics about page tables, which lead me to the question Why using hierarchical page tables? which mentions that ...
2
votes
1answer
543 views

Where is max process size specified?

I've got a RHEL4 machine with 1TB of memory and have discovered that malloc and mmap refuse to allocate any memory above 512GB. Meanwhile, I don't seem to have a problem with RHEL5 machines. I'm ...
5
votes
1answer
291 views

Virtual kernel memory layout: negative values [closed]

i'm porting drivers for omap3-board to 3.5 kernel. When I start board I see it: Memory: 256MB = 256MB total Memory: 253564k/253564k available, 8580k reserved, 3226106074K highmem Virtual kernel ...
1
vote
0answers
153 views

memtester runs faster after couple of runs

I am using this test tool : http://pyropus.ca/software/memtester/ And I noticed that first 3 iterations take 4 hours but 30 iterations take only 12 hours. I was hoping that 30 iterations will take 40 ...
6
votes
2answers
1k views

An oom killer thats baffling me

I am not able to understand why would kernel issue this oom killer when I see enough memory is available: Also why are there so many kernel cache pages allocated? I say enough memory is available ...
2
votes
2answers
358 views

Do Solaris 10 and 11 still use slab allocation for their kernel memory allocator

If not, what do they use. Please provide a source.
2
votes
1answer
787 views

High memory (user space) and highmem (kernel space)

Each process has 2 memory area: User space (high memory) and kernel space (low memmory). In the kernel space, are the first 896 MB used for mapping kernel code (not fully 1 GB)? This means, when a ...
14
votes
3answers
7k views

How can I reserve a block of memory from the Linux kernel?

I have a device that needs a block of memory that is reserved solely for it, without the OS intervening. Is there any way to tell BIOS or the OS that a block of memory is reserved, and it must not ...
2
votes
2answers
617 views

Linux I/O shared memory access

I'm pretty confused on how linux manages I/O shared memory to communicate with devices that use it. If I understood it correctly linux kernel starts mapped at 0x100000 (to avoid the first megabyte ...
2
votes
1answer
886 views

How often is PSS value updated for a given process in /proc/pid/smaps

So if n processes are sharing a library L with size M then the contribution to their PSS is M/n. Now imagine one of the process terminates. So the contribution would be M/(n-1). Q1: My question is ...
2
votes
1answer
460 views

Memory profiling the linux kernel on an embedded device

I have an linux kernel 2.6.30 on an ARM based embedded device and I have to do some kernel memory usage profiling on the device. I am thinking of monitoring the ps output on various kernel threads ...
19
votes
3answers
3k views

What does the vm.swappiness parameter really control?

Per the kernel documentation: This control is used to define how aggressive the kernel will swap memory pages. Higher values will increase aggressiveness, lower values decrease the amount of swap. ...
6
votes
1answer
2k views

getrusage system call: what is “maximum resident set size”

man getrusage 2 says ru_maxrss (since Linux 2.6.32) This is the maximum resident set size used (in kilobytes). For RUSAGE_CHILDREN, this is the resident set size of the largest ...
3
votes
2answers
640 views

Restricting memory area for linux kernel

I am running ltib Linux on P1022RDK (P1022 Core) platform. I have 512 MB = 0x20000000 memory. I want my Linux kernel to use the second half of the board memory (i.e from 256 MB to 512 MB) and want the ...
12
votes
3answers
3k views

Increasing kernel memory size

I have an embedded board with 512MB of RAM running Linux 2.6.29 and UBoot bootloader. But the kernel is able to utilize only 128MB of RAM. I tried changing the value of XCODE_MEMSIZE, which I think ...
2
votes
1answer
109 views

Is there any method to mount a block of memory as a filesystem in linux?

I have a question,in linux, is there any method to mount a block of memory as a filesystem? For example, in X86 architecture, when power on, I reserve a block of memory about 8 Mbytes, and then when ...
6
votes
3answers
2k views

Linux Kernel logical address space organisation

According to "Write Great Code" in almost all OS run time memory is organized into following regions: OS | Stack | Heap | Text | Static | Storage/BSS [In increasing address fashion] User ...
1
vote
1answer
279 views

What are the Implications of moving to Huge mem kernel on RHEL4

I've been asked to investigate adding extra memory (> 16gb) to a RHEL 4 server and moving to a huge mem kernel. The server is used for Oracle RAC. Is it just a case of installing the hugh mem kernel ...
1
vote
1answer
373 views

Fedora 15 - Limited RAM Access

I have an issue with Fedora 15's available memory. The laptop it is installed on has 4GB of SDRAM, but Fedora only sees 2GB. [njozwiak@calvin xpmc6720]$ free -m total used ...
2
votes
0answers
612 views

Linux kernel slab usage growing on embedded system

I'm in the process of QA/debugging a project on a custom embedded linux system. The problem we're VERY tight on memory, and even a couple megs can cause issues with our software. What I'm seeing ...
3
votes
2answers
4k views

What is the difference between 32-bit PAE and 64-bit kernels?

I ask this only in regards to memory addressing. I know that a PAE kernel allows the OS to access more memory than a standard 32-bit kernel, however, what are the other implications? What specific ...
8
votes
3answers
521 views

Memory size for kernel mmap operation

I'm interested in the way Linux mmaps files into the main memory (in my context its for executing, but I guess the mmap process is the same for writing and reading as well) and which size it uses. So ...
1
vote
1answer
1k views

How to view and change kernel memory size?

How can i view the kernel's share of memory on a machine? How can I increase it? What should I consider before doing it?
12
votes
4answers
2k views

Read the stack of another process?

I'm trying to read a child process's stack but with no luck. I know it is possible using ptrace, but ptrace's interface allows you to read only one word at a time, and I'm trying to scan a larger ...
3
votes
3answers
585 views

Preloading the OOM Killer

I don't have any swap partition/file on my machine, and only 2GB of RAM. Sometimes it happens that the memory gets saturated by some process (Xorg+browser+compiler+...) and the system hangs ...
3
votes
2answers
790 views

Questions on Linux kernel internals

I was reading "Linux device drivers, 3rd edition" and faced a few kernel items I don't quite understand. Hope gurus on this forum will help me out. Does the Linux kernel internally operate with ...
61
votes
3answers
32k views

How do I read from /proc/$pid/mem under Linux?

The Linux proc(5) man page tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me $ cat /proc/$$/mem ...
4
votes
1answer
2k views

What are shmpages in laymans terms?

What exactly are shmpages in the grand scheme of kernel and memory terminology. If I'm hitting a shmpages limit, what does that mean? I'm also curious if this applies to more than linux
5
votes
2answers
987 views

ZONE_NORMAL and it's association with Kernel/User-pages?

Above is presented a case where I have only 512 MB of physical memory. What I have read up so far, is that ZONE_NORMAL is mapped to the kernel virtual address space as shown. Essentially I have a ...
11
votes
1answer
4k views

What does the Virtual kernel Memory Layout in dmesg imply?

While going through the "Output of dmesg" I could see a list of values which i am not able to understand properly. Memory: 2047804k/2086248k available (3179k kernel code, 37232k reserved, 1935k ...
54
votes
5answers
24k views

What are high memory and low memory on Linux?

I'm interested in the difference between Highmem and Lowmem: Why is there such a differentiation? What do we gain by doing so? What features does each have?
2
votes
1answer
308 views

Kernel memory allocator patch

Is there any patch for Linux kernel to use different memory allocators, such as ned allocator or TLSF allocator?