03-03-2010
Translating real addresses to physical addresses is almost always a function of the hardware. The CPU refers to a table in RAM assigning physical to virtual ranges, it's the responsibility of the OS to manage these tables. Where this table is and how it's laid out depends on the architecture.
There's easier ways to access physical RAM from userspace than making a kernel driver, though. I think you can just map in the relevant bits of /dev/core, which will give you access to the ranges you want while letting the kernel's existing facilities manage all the translation.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am running solaris 9 i now how to create virtual ip address but how do i keep them so when the server reboots they are still there?...THANX (2 Replies)
Discussion started by: rmuhammad
2 Replies
2. Shell Programming and Scripting
What command can i use to get the physical and virtual memory of a database? (7 Replies)
Discussion started by: tads98
7 Replies
3. UNIX for Advanced & Expert Users
Hello,
I would like to know if there is a command or any configuration file to find and differentiate the Virtual IP Addresses (of the Cluster Resource Group) and the IP Address of the Cluster Node. I observe that the ifconfig -a command returns all the IP addresses configured on the ... (1 Reply)
Discussion started by: vineetd
1 Replies
4. IP Networking
How would i create virtual interface in linux to configure more than one IP address for a physical interface?
any help wll be appreciated.
https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: salil2012
1 Replies
5. Solaris
Hi,
I am on an Solaris machine "SunOS 5.10 Generic_139556-08 i86pc i386 i86pc"..how do i check if I am on an physical or an virtaul server.
Thanks. (6 Replies)
Discussion started by: jjoy
6 Replies
6. Solaris
Hello,
Firstly, apologies if the theme of this post is discussed elsewhere.
At the moment we have a dual-domain M5000 running. Each domain is running with equal amounts of CPU and memory.
What we'd like to do is move the 2 hosts in question (1 per domain) to a Solaris 10 zone of it's zone.... (2 Replies)
Discussion started by: nm146332
2 Replies
7. UNIX for Advanced & Expert Users
Hi All,
How can I know whether the server I am connecting to is a virtual or physical one? The server might be having any Unix OS (Linux/Solaris/HP-UX etc.).
Is there any system files / commands which can show these concrete information?
Thanks in advance for the replies.
sanzee (1 Reply)
Discussion started by: sanzee007
1 Replies
8. Red Hat
Hi,
i am trying to find out hpw many virtual and physical processors does any linux machine has:
output of /proc/cpuinfo is as below :
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU... (8 Replies)
Discussion started by: omkar.jadhav
8 Replies
9. AIX
HI,
I need a command to find,
1) Avaiable Physical CPU
2) Avaiable virtual CPU
TIA (1 Reply)
Discussion started by: sumanthupar
1 Replies
10. Solaris
uname -a reports type Generic so I know its virtual. Assume its an ldom somewhere.
How do I find out what physical host server is? (4 Replies)
Discussion started by: psychocandy
4 Replies
CHCPU(8) User Manuals CHCPU(8)
NAME
chcpu - configure CPUs
SYNOPSIS
chcpu [-e] [-d] [-c] [-g] cpu-list
chcpu [-p] mode
chcpu -r
chcpu [-h] [-V]
DESCRIPTION
chcpu can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying
hypervisor, and request CPUs from the hypervisor (configure) or return CPUs to the hypervisor (deconfigure).
Some options have a cpu-list argument. Use this argument to specify a comma-separated list of CPUs. The list can contain individual CPU
addresses or ranges of addresses. For example, 0,5,7,9-11 makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and
11.
OPTIONS
-r, --rescan
Trigger a rescan of CPUs. Use this option on systems that do not automatically detect newly attached CPUs. The Linux kernel then
recognizes the new CPUs.
-c, --configure cpu-list
Configure all specified CPUs. Configuring a CPU means that the hypervisor takes a CPU from the CPU pool and assigns it to the vir-
tual hardware on which your kernel runs.
-e, --enable cpu-list
Enable all specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see -c, before it can be
enabled.
-p, --dispatch mode
Set the CPU dispatching mode (polarization). This option has an effect only if your hardware architecture and hypervisor support
CPU polarization. Available modes are:
horizontal The workload is spread across all available CPUs.
vertical The workload is concentrated on few CPUs.
-d, --disable cpu-list
Disable all specified CPUs. Disabling a CPU means that the kernel sets it offline.
-g, --deconfigure cpu-list
Deconfigure all specified CPUs. Deconfiguring a CPU means that the hypervisor removes the CPU from the virtual hardware on which
the Linux instance runs and returns it to the CPU pool. A CPU must be offline, see -d, before it can be deconfigured.
-h, --help
Display help information and exit.
-V, --version
Display version information and exit.
AUTHOR
Heiko Carstens <heiko.carstens@de.ibm.com>
COPYRIGHT
Copyright IBM Corp. 2011
SEE ALSO
lscpu(1)
AVAILABILITY
The chcpu command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils/util-
linux/>.
Linux June 2012 CHCPU(8)