Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Advanced info on CPU Emulators Post 302530938 by Corona688 on Wednesday 15th of June 2011 11:38:21 AM
Old 06-15-2011
Quote:
Originally Posted by theKbStockpiler
Why emulate the CPU if you have the instruction set?
It's been found useful to break up one big server into many smaller, virtual ones. When you hear the term "virtual server" this is what they're talking about, a virtual environment inside a bigger server in which you can install pretty much whatever OS and software you want. Sometimes the host OS supports virtual environments natively, or it can be done through software like Qemu and VMware. Hardware virtualization has made this reasonably efficient now, but if they had to actually emulate all these environments instruction by instruction? It wouldn't be practical.
Quote:
The data structure is Really the Emulated CPU is it not?
Data is registers; they just sit there. The program has to decide what to do to them. In a real CPU, this would be decided in hardware. In a software emulator, it has to do it 'by hand' as it were, decoding which instruction it is with binary logic operations and finding it in a big look-up table or something, then doing operations on the "registers" as appropriate.
Quote:
The emulated CPU would be imaginary besides for its reprentation in a file the emulator would address so I could have registers of how many and what size I could dream up could I not?
Absolutely. I was just talking about optimization.

Last edited by Corona688; 06-15-2011 at 01:25 PM..
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

any emulators

iam new to unix , i would like to practice unix commands at home, can anyone help me to know if there are any emulators that i can download to practice or any trial versions that can be installed to practice. Regards dep (1 Reply)
Discussion started by: dep
1 Replies

2. UNIX for Dummies Questions & Answers

bus speed and CPU info

Hi, Is there a command I can use to find out how many CPU's and what type are on my server? (I was told to use cat /proc/cpuinfo) Also, how do I know what kind of bus speeds are on my server? Thanks in advance:) (3 Replies)
Discussion started by: ihot
3 Replies

3. HP-UX

cpu info

is there a single command or location from which one can get information like cpu Mhz,cpu cache...etc in HP UX:) (1 Reply)
Discussion started by: vijayca
1 Replies

4. Gentoo

top in batch mode, cpu info is wrong

well. the title says it all. im runing top in batch mode like this top -b -n1 > somefile but the cpu usage info is not correct. if i run top normally, the first second, i see the same wrong info, and then it corrects itself. i found only one small mention of it on this forum. with this link... (7 Replies)
Discussion started by: broli
7 Replies

5. AIX

How to access process and cpu info on AIX?

Hi, may be this is an AIX noob question: my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (5 Replies)
Discussion started by: DarthVader77
5 Replies

6. HP-UX

CPU Info

Hi, I am going to buy a software that is licenced per CORE. I have a HPUX B1123 64 bit with 8 cpus. How can i know how many cores are in my machine ? Thanks (3 Replies)
Discussion started by: yoavbe
3 Replies

7. Shell Programming and Scripting

Generic command for CPU info

Dear all, Is there any generic command working on all Unix listing the CPU of a server? I found different command line per OS but I am looking for a more generic one. Thanks for your answer. (5 Replies)
Discussion started by: sgoiffon
5 Replies

8. Shell Programming and Scripting

Perl agent which calculates CPU info and more

Hello to everyone. This is my first post. I want to make one perl agent which calculate following things from Linux Server. Actually I want to pull all this information from 2 linux client and wants to display on web interface. First I want to calculate below details 1) CPU 2) MEMORY 3)... (6 Replies)
Discussion started by: sania.mirza
6 Replies

9. AIX

To get only the cpu info from the topas command terminal

To get only the cpu info from the topas command terminal. CPU User% Kern% Wait% Idle% Physc Entc ALL 2.3 4.4 0.0 93.3 0.07 7.7 I tried some thing like this but did not work topas << done grep "ALL" q done Can someone help me in this. (5 Replies)
Discussion started by: rpm120
5 Replies

10. UNIX for Dummies Questions & Answers

Best ways to get clear info about CPU and Memory

Hello all i did search the web and found allot of answers but im confused what are the best ways to get this info via Linux default commands 1. current Cpu Usage in Percent 2. current Memory Usage In Bytes 3. current Memory Available In Bytes Thanks! (2 Replies)
Discussion started by: umen
2 Replies
iec(1)							      General Commands Manual							    iec(1)

NAME
iec - Instruction Emulator Control SYNOPSIS
iec p | s [value] iec p | s [keyword] OPTIONS
The following options are used with the iec command: Sets or displays the current option setting for the parent process. Sets or displays the current option setting for the system. The following keywords are used with the p option: Resets the current option settings to the default settings for the parent process. Does not print the instruction emulation warning message for the parent process. Disables instruction emulation. Any programs that attempt to execute instructions that are not implemented in the host processor will receive the SIGILL (illegal instruction) signal. Prints the instruction emulation warning messages for all instances of instruction emulation. By default, a message is only printed for the first instance. The following keywords are used with the s option: Resets the current option settings to the default settings for the system. Does not print the instruction emulation warning message for the system. If value is not specified, the current option setting is displayed. You can specify value as either 0 (zero) or 1 (one). If value is 0 (zero), the option is turned on and messages are not displayed. If value is 1 (one), the option is turned off and messages are displayed. Keywords can be used singly or in any combination. However, the reset keyword overrides any other keywords that it is used with. Usually, the parent process is the shell. DESCRIPTION
Some processors in the Alpha processor family do not implement all of the instructions defined in the Alpha architecture. The operating system provides an instruction emulator that permits all programs written for the Alpha architecture to run, regardless of the Alpha pro- cessor being used. When the operating system encounters an instruction that is not implemented by the host processor, the default action is to emulate the instruction and print a message informing the user process that the emulation has occurred. By default, the operating system prints a mes- sage only for the first instance of emulation, although it continues to emulate any other non-implemented instructions that it encounters. The message has the form: "inst emulated pid=nnn <prog_name> va=0xvirtual_addrpc=0xpc_addr inst=0xactual_instr". Receiving this message tells you that your application will run at less than its optimal level of performance. You may wish to recompile your program to get bet- ter performance. For information on how to compile for a specific hardware platform, see the compiler manpage for the language you are using. In addition, the default action for the operating system is to not deliver a SIGILL signal to the parent process when an emulated instruc- tion is encountered. These defaults are satisfactory for most users, but some users require a different behavior and want to specify their own Instruction Emu- lator Control (IEC). The iec command enables or disables the display of "inst emulated" messages. The command sets or displays the IEC_NOPRINT, IEC_NOEMUL, and IEC_VERBOSE flags, as defined in setsysinfo(2). RESTRICTIONS
You must be superuser to set the system option. EXAMPLES
Both of the following commands disable messages for the parent process: # iec p 0 # iec p noprint Both of the following commands enable messages for the system: # iec s 1 # iec s reset The following command enables the printing of a message for each emulated instruction: # iec p verbose SEE ALSO
getsysinfo(2), setsysinfo(2) iec(1)
All times are GMT -4. The time now is 03:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy