Questions tagged [cpu-architecture]

For questions relating to how a Unix/Linux system targets or interacts with a CPU architecture.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

How could one create a hash fingerprint for a computer's architecture/instruction set?

Imagine a protocol where participants sign a schema document to declare which version they will follow. To define functions used in the protocol, without recourse to URLs, we could define operating ...
Lee's user avatar
  • 497
0 votes
2 answers
82 views

WORD_BIT vs LONG_BIT

What is the difference between WORD_BIT and LONG_BIT? And which one should I use to find out the word size of my system? Both return different results ➜ ~ getconf LONG_BIT 64 ➜ ~ getconf WORD_BIT 32 ...
0Nicholas's user avatar
  • 103
0 votes
0 answers
17 views

Manually Assigning C-states to CPUs for Energy Optimization

Is it possible to manually set specific C-states for CPUs, similar to how we select processor frequencies, for energy optimization purposes? I'm interested in tools or methods that allow such granular ...
sako's user avatar
  • 1
0 votes
0 answers
157 views

"MDS CPU bug present and SMT on" Bugs decteted after running JURNALCTL on opensuse leap 15.5 shell

Running JURNALCTL on opensuse leap 15.5 shell , it detected the following bugs: 1- MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/...
Harlequin's user avatar
2 votes
0 answers
524 views

What is the exact source of Architecture info in lscpu command

Tl;dr I need to mock info about CPU architecture on the server for testing purpose. The only way that I can achieve it, is by changing info source about CPU architecture, that is used by lscpu command ...
mindgod's user avatar
  • 21
0 votes
1 answer
2k views

Wrong ELF class: ELFCLASS64

I'm in an ARM machine and I wanted to use an x86 program. Installed Box86 and the program and it's libraries. The program crashes because of this error: Error initializing native *libname* (last ...
GospelBG's user avatar
1 vote
1 answer
1k views

Three ways to get machine architecture

Two very common ways of getting the machine architecture are these: uname -m and arch. They both print things like x86_64. But I remember there is a third way to do that, but I can't remember what it ...
polemon's user avatar
  • 11.4k
0 votes
3 answers
96 views

Why my system says have a 32 bit cpu?

When execute: $ cat /sys/devices/system/cpu/modalias; cpu:type:x86,ven0002fam0019mod0021:feature:,0000, Says have a 32 bit cpu, but have a ryzen 7 5800X3D, is a 64 bit cpu, what happens? $ cat /proc/...
e-info128's user avatar
  • 175
1 vote
0 answers
130 views

How to architecture for each physical cpu from /sys/devices?

By example, i can get the architecture of the cpu of my pc: $ cat /sys/devices/system/cpu/modalias; cpu:type:x86,ven0002fam0019mod0021:feature:,0000, Ok, is x86, but what happens with 1u rackable ...
e-info128's user avatar
  • 175
3 votes
2 answers
2k views

How to find out what is the Instruction Set Architecture (ISA) of a CPU?

In the Debian download CD/DVD images page they have different ISO's for the different instruction set architectures. How do I know what is the ISA of a CPU before I buy one? I know about using the ...
Mohd Arafat Hossain's user avatar
5 votes
1 answer
1k views

`uname -m` valid values

On my computer, uname -m prints x86_64 as output. What is the list of possible values that this command could output? I intend to use this command from a dynamic runtime to check the CPU architecture.
thewolf's user avatar
  • 153
8 votes
5 answers
3k views

What is difference between sleep and NOP in depth?

I am trying to learn operating system concepts. Here is two simple python code: while True: pass and this one: from time import sleep while True: sleep(0.00000001) Question: Why when running ...
Mojtaba Kamyabi's user avatar
1 vote
1 answer
2k views

32-bit = i686, 64-bit = x86_64, ARM = ??? / What Linux Distros can my arm7 CPU install?

Okay, so I know when browsing lists of Linux Distros online, if I have a common 32-bit CPU from Intel/AMD, under "Architecture:" I should look for "i686", and for 64-bit I should ...
ashaad.montgomery's user avatar
0 votes
1 answer
954 views

Do CPUs that support 5-Level Papging implement a 57-bit long address bus? [closed]

Despite having a data bus size of 64 bit, the address bus size of modern AMD64-compatible CPUs is/was 48 bit for some time which allows using 48-bit long virtual memory addresses with a maximum of ...
Neverland's user avatar
  • 475
2 votes
1 answer
638 views

How does the Linux kernel know the computer architecture?

In start_kernel(), one of the first things the kernel does is run setup_arch(). setup_arch() is defined for every supported architecture, so it is passed a pointer to the appropriate command line. How ...
Ramsey Alsheikh's user avatar
0 votes
1 answer
109 views

Is an Intel 80386 application compatible with Intel(R) Core(TM) i7-7820HQ CPU?

When I run my application: ./a.out bash: ./a.out: No such file or directory and bash ./a.out ./a.out: ./a.out: cannot execute binary file I start feeling this is an architecture issue. The file ...
mercury's user avatar
0 votes
1 answer
235 views

Why does lspci show intel 8th gen when I am using i7-9850H cpu?

OS: Debian 10 $ cat /proc/cpuinfo model name : Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz $ lspci 00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 0d)...
sgon00's user avatar
  • 387
1 vote
1 answer
160 views

Why x86 ISA devices cannot perform DMA in to the full 32 bit address space?

As per Robert Love 's Linux Kernel Development , an x86 ISA device cannot perform DMA in to the full 32 bit address space because ISA devices can access only the first 16MB of physical memory(range ...
Franc's user avatar
  • 289
2 votes
1 answer
869 views

rhel + how to disable CPU's on my machine

We have physical Linux machine with 16 cpus lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 We want to disable ...
yael's user avatar
  • 13.2k
37 votes
8 answers
41k views

How do I check if my CPU supports x86-64-v2?

AMD, Intel, Red Hat, and SUSE have defined a set of "architecture levels" for x86-64 CPUs. For example x86-64-v2 means that a CPU support not only the basic x86-64 instructions set, but also ...
gioele's user avatar
  • 2,139
3 votes
1 answer
2k views

kernel cannot execute binaries (error -8)

my platform: SOC = STM32H743 (ARMv7E-M | Cortex-M7) Board = Waveshare CoreH7XXI Linux Kernel = 5.8.10 (stable 2020-09-17) initial defconfig file = stm32_defconfig rootfs = built using busybox | ...
Mahyar Shokraeian's user avatar
10 votes
5 answers
3k views

Can I run 64 bit ubuntu on my pc (>10 years old)

I don't know anything about CPUs. I have a 32-bit version of ubuntu. But I need to install 64-bit applications. I came to know that it is not possible to run 64-bit apps on 32 bit OS. So I decided to ...
mig001's user avatar
  • 203
1 vote
0 answers
224 views

How do machine-check exception (MCE) work?

I want to understand how CPU performs this Machine checks and how does it detect if any device has failed? Does the device send any machine-check exception (MCE) event which the MCE daemon catches ...
 Zeeshan Haris's user avatar
0 votes
1 answer
79 views

isocpus - intel skylake, redhat 7.7 number of cpus confusion

We've got 2 skylake processors i9-9960x (16 core) and i9-7920x (12 core), hyperthreading off in both. i'm trying to set the isolcpus to 2-15 and and 2-11 respectively, but when i run the command: cat ...
user2635088's user avatar
-3 votes
1 answer
714 views

Reasons that may cause a running process to voluntarily or involuntarily give-up the CPU?

What are the reasons that may cause a running process to voluntarily or involuntarily give-up the CPU? As only one process can be running in the CPU/Core at any one time.
Ayush's user avatar
  • 3
0 votes
1 answer
697 views

Can I use the physical socket id of a CPU to determine which cluster it belongs on an ARM big.LITTLE SoC?

I'm currently trying to determine the quantities of cpus in each cpu cluster of a big.LITTLE architecture from userspace. I'm looking at files on sysfs to see if any of them can give the information ...
Eduardo macedo's user avatar
0 votes
1 answer
91 views

What is meant by register-impaired architecture

I am reading Robert Love's linux kernel development book. In that, book he is mentioning about register-impaired architecture. I don't know what is register-impaired architecture. Kindly explain me, ...
Dineshkumar's user avatar
0 votes
1 answer
995 views

How to configure rpmbuild to forbid installing 32 bit package in 64 bit systems?

I'm packaging software in RPM and distributing it in different packages by architecture (32bit or 64bit). Some libraries of my 32bit package have binaries that cannot be executed in 64bit systems (...
Alejandro S.'s user avatar
2 votes
1 answer
118 views

What microarchitecture are packages on apt/yum typically built/tuned for?

I'm just learning a bit about lower-level languages and I've noticed that gcc you can specify -march and -mtune parameters to optimise the software for particular CPU families. But I've also found ...
Yoshi Walsh's user avatar
1 vote
1 answer
304 views

running a program in parallel with multiple threads

Say I want to run a parallelize a program to process a bunch of files, and this program accepts a -t option to increase the number of threads used. The machine I am using has the following specs from ...
Jeff Groh's user avatar
0 votes
0 answers
222 views

What is the deference between `arch` and `/etc/yum/vars/arch` at docker container?

I use docker container on CentOS7 x86_64. Docker container depends on the host system. bash $ arch x86_64 The arch command shows the above host arch in the container. I want to use the container ...
Deo's user avatar
  • 1
2 votes
2 answers
5k views

What are the possible options for the --arch option in debootstrap?

I need to set the arch option in debootstrap. So I did some research and read the manual. After reading the manual I see that the section on the options simply says --arch=ARCH Implying that I ...
Mr Purple's user avatar
  • 153
5 votes
2 answers
7k views

Why do Linux world use the term i386 instead of x86?

I see the term i386 instead of x86 in many places related to Linux. As of my knowledge, they are not interchangeable. x86 is a family of instruction set architectures where i386 is a specific one of ...
Bertram Gilfoyle's user avatar
0 votes
2 answers
397 views

Actual compilation differences between CPUs

For a project I intend to compile various *NIX OSs and their relative packages with different CPUs in order to maximize optimization and performance for specific systems. In order to save time and ...
user749317's user avatar
2 votes
1 answer
2k views

Does my Linux system support the 32-bit syscall table?

The context is the following: Additionally, the following rule is required in systems supporting the 32-bit syscall table (such as i686 and x86_64). I'm trying to figure out what this means, and ...
user avatar
1 vote
1 answer
1k views

Disabling/Re-enabling cores via kernel in Threadripper/EPYC systems [closed]

As part of my current research, I've been doing tests where I disable/re-enable cores by echoing 0 or 1 to /sys/devices/system/cpu/cpuN/online to simulate vertical scaling. With Kernel v4.4.0 (...
ghabiger's user avatar
1 vote
1 answer
270 views

Essential packages and multiple architectures on Debian

I have a working OS that runs 64 bit kernel but I want to use 32 bit versions of most packages because of limited memory on the machine. I need to keep some 64 bit drivers though as there is no 32 bit ...
sevo's user avatar
  • 1,237
1 vote
1 answer
655 views

What kind of RPM packages should I use for armv7l

Suppose I get something like this from uname. Linux localhost 3.8.13-mrvl #12 PREEMPT Wed Aug 12 10:15:36 PDT 2015 armv7l I presume I should use armv7hl packages? The device is Steam Link. The ...
user1561358's user avatar
8 votes
2 answers
12k views

dnf error conflicting packages between i686 and x86_64

I am getting a series of errors similar to this file /usr/share/doc/glibc/NEWS from install of glibc-2.25-10.fc26.i686 conflicts with file from package glibc-2.25-7.fc26.x86_64 when I try to dnf ...
lvc's user avatar
  • 296
3 votes
1 answer
477 views

Can I detect instruction set architecture in vimrc? (ARM vs x86)

I sometimes develop code on ARM hardware (Cubietruck or Rpi) as their dire slowness helps me to find code bottlenecks more easily than on amd64. However I want Vim to remain responsive so I need to ...
Thomas Browne's user avatar
1 vote
2 answers
2k views

Installing 32-bit Linux distribution on 32-bit Architecture with 32-bit UEFI

There's a lot of information on installing 64-bit Linux on 32-bit UEFI. It's a mess even here, but I've seen ways (rEFInd, etc). But this laptop (HP Envy X2) has a 32-bit architecture and exclusively ...
Cosine's user avatar
  • 111
1 vote
2 answers
2k views

Can I install kde neon amd64 on i686 architecture?

Recently I downloaded latest kde neon amd64.iso. I don't know how it's corrupt. But can I install amd64 software on i686 architecture ?
Swapnil's user avatar
  • 251
1 vote
3 answers
239 views

does arch exist on all linux/unix systems?

Trying to find the most portable way to determine the CPU architecture of a system, be it 32bit x86, 64bit or something else (e.g. ARM). does the arch command exist on all systems? otherwise how do I ...
Dr.Avalanche's user avatar
5 votes
1 answer
320 views

How do I put hardware dependencies on .deb packages?

Building deb packages optimized for arbitrary CPU instructions, how do I put the CPU instructions as a dependency on the deb packages ? The package isn't intended for mass distribution, but I don't ...
Zulgrib's user avatar
  • 984
6 votes
1 answer
3k views

Practical use of uname in chroot?

I am preparing an OS image through a combination of bootstrapping and chrooting. Some actions (e.g. building kernel modules) rely on uname output, which reports the host configuration even inside the ...
Roman Saveljev's user avatar
20 votes
8 answers
19k views

Are binaries portable across different CPU architectures?

My goal is to be able to develop for embedded Linux. I have experience on bare-metal embedded systems using ARM. I have some general questions about developing for different cpu targets. My questions ...
foob's user avatar
  • 319
8 votes
3 answers
9k views

Chroot into a different architecture?

I have a filesystem image that's going to be used for an ARM processor, but I want to install some things on it first, like a Desktop, etc. So I want to mount the filesystem on my Linux machine and ...
Zephyr's user avatar
  • 381
1 vote
1 answer
685 views

Why is 64bit Ubuntu running Slower? [closed]

I have 2 mostly identical machines, and Acer and a Lenovo, both with Intel Atom 230 CPU @ 1.60GHz and 1GB of DDR2 RAM. The acer has a fresh install of 64Bit Ubuntu 14.04 LTS while the Lenovo has the ...
Bogdan's user avatar
  • 111
10 votes
1 answer
17k views

Why is my system architecture i386 on a 64-bit processor? [closed]

Recently, a small message appeared on my Gmail, notifying me that my google chrome version isn't compatible anymore. So I tried to update my chrome (I didn't take care about my chrome version from ...
Leo Armentano's user avatar
1 vote
1 answer
5k views

Understanding the top command output on an ARM multicore computer

Ran the top command to check CPU performances and memory usage on the New RPi3 while running a browser. Since we have a 4× ARM Cortex-A53, 1.2GHz, how should I read the result? $ top Mem: 327132K ...
zabumba's user avatar
  • 924