Kernel/ user space and high/ low mem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Kernel/ user space and high/ low mem
# 1  
Old 12-02-2010
Kernel/ user space and high/ low mem

Need some clarification on this....

1. how are kernel/ user spaces and high/low memory related?

2. What do they all mean when i have the kernel command line as:
"console=ttyS0,115200 root=/dev/sda2 rw mem=exactmap memmap=1M@0 memmap=96M@1M irqpoll"
or
2. what do mem and memmap mean in terms of user/kernel space and high/low mem?
# 2  
Old 12-02-2010
Quote:
Originally Posted by dragonpoint
Need some clarification on this....

1. how are kernel/ user spaces and high/low memory related?
The traditional virtual mapping for the kernel in linux x86 is 1 gig of address space for the kernel, 3 gigs of address space for one process. There's also a 128-meg hole punched into the kernel range for hardware reasons, which limits the amount of memory the kernel can actually access to potentially less than the system has installed. Memory the kernel can't map into itself is "high memory".

It can use that 128-meg hole indirectly, at a performance cost.

How this matters to userspace is either less available memory, or a performance cost.
Quote:
2. What do they all mean when i have the kernel command line as:
"console=ttyS0,115200
Make /dev/console my serial port, defaulting to 115200 baud. This is handy for kernel debugging since you can log crashdumps that come over a serial port, but can't really log a monitor...

Code:
root=/dev/sda2 rw

Mount /dev/sda2 as my root partition in read-write mode
Code:
mem=exactmap memmap=1M@0 memmap=96M@1M

Ignore the used-memory ranges the BIOS reports and use these numbers instead. grepping for it finds it in arch/x86/kernel/e820.c
Quote:
irqpoll
Some badly broken BIOSes screw up interrupt handlers, giving the wrong interrupt numbers etc etc. Interrupts still happen but may call the wrong handlers, or no handlers. irqpoll is a workaround to check all available handlers to see if they're waiting for an interrupt and service it accordingly. I had a system that needed this, without irqpoll the network card would just cause kernel logs like "IRQ 12, nobody cared".

Quote:
2. what do mem and memmap mean in terms of user/kernel space and high/low mem?
The difference to userspace is 128 less megs of memory. high memory is a kernel thing, in userspace the distinction is moot.

[edit] almost forgot. more detail here

Last edited by Corona688; 12-02-2010 at 05:23 PM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 12-03-2010
how to find what are the current settings for high and low memory?
# 4  
Old 12-03-2010
make menuconfig?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

High RAM usage, extremely low swapping

Hi team I have three physical servers running on Red Hat Enterprise Linux Server release 6.2 with the following memory conditions: # cat /proc/meminfo | grep -i mem MemTotal: 8062888 kB MemFree: 184540 kB Shmem: 516 kB and the following swap conditions: ... (6 Replies)
Discussion started by: hedkandi
6 Replies

2. AIX

High Runqueue (R) LOW CPU LOW I/O Low Network Low memory usage

Hello All I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) . The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies

3. Shell Programming and Scripting

Split file into chunks of low & high byte

Hi guys, i have a question about spliting a binary file into 2 chunks. First chunk with all high bytes and the second one with all low bytes. What unix tools can i use? And how can this be performed? I looked in manpages of split and dd but this does not help. Thanks (2 Replies)
Discussion started by: basta
2 Replies

4. Linux

Linux Device Driver: avoid mem copy from/to user/kernel space

I recently started working with Linux and wrote my first device driver for a hardware chip controlled by a host CPU running Linux 2.6.x kernel. 1. The user space process makes an IOCTL call with pointer to a user memory buffer. 2. The kernel device driver in the big switch-case of IOCTL,... (1 Reply)
Discussion started by: agaurav
1 Replies

5. Shell Programming and Scripting

Picking high and low variables in a bash script - possible?

Is it possible to have a bash script pick the highest and lowest values of four variables? I've been googling for this but haven't come up with anything. I have a script that assigns variables ($c0, $c1, $c2, and $c3) based on the coretemps from grep/sed statements of sensors. I'd like to also... (5 Replies)
Discussion started by: graysky
5 Replies

6. UNIX for Advanced & Expert Users

wake up user space thread from kernel space ISR

Hello, I'm searching for a proper way to let the kernel space ISR(implemented in a kernel module) wake up a user space thread on a hardware interrupt. Except for sending a real-time signal, is it possible to use a semaphore? I've searched it on google, but it seems impossible to share a... (0 Replies)
Discussion started by: aaronwong
0 Replies

7. Shell Programming and Scripting

low & high values

on the file Ftp'd from the mainframe ,do we have any UNIX command to replace mainframe low and values to space or null. i tried using tr and it doesn't work ... Thanks (1 Reply)
Discussion started by: rlmadhav
1 Replies

8. UNIX for Advanced & Expert Users

Can kernel process access user address space ?

Can kernel process access user address space ? (2 Replies)
Discussion started by: subhotech
2 Replies

9. Linux

High Mem & Cpu Utilisation

Hi All, Kindly help me in optimizing the server as it displays a great amount of CPU & MEM being utilised when the mysql process executes. Below are the stats --- -------------------------------------------------------------------------- # top 15:51:57 up 23:22, 5 users, load average:... (1 Reply)
Discussion started by: gautamatul82
1 Replies

10. UNIX for Advanced & Expert Users

Sun: High kernel usage & very high load averages

Hi, I am seeing very high kernel usage and very high load averages on my system (Although we are not loading much data to our database). Here is the output of top...does anyone know what i should be looking at? Thanks, Lorraine last pid: 13144; load averages: 22.32, 19.81, 16.78 ... (4 Replies)
Discussion started by: lorrainenineill
4 Replies
Login or Register to Ask a Question