Skip to main content
Unix & Linux

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
1 vote
0 answers
94 views

Alternate way to get the CPU cache size

I have a project where I need to get the size of the cache on my Linux machine. I don't know the linux distro, and the /etc/os-release file does not exist. I only know the kernel and architecture: ...
5 votes
1 answer
479 views

Who maintains architecture IDs (and OS ABIs) for ELF format now?

The latest spec for ELF list many architectures that can be used with it, but some self-assignments are made in the wild (e.g. Chinese LoongArch). Is there anyone coordinating these assignments? ...
0 votes
2 answers
287 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 ...
2 votes
0 answers
914 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 ...
0 votes
1 answer
3k 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 ...
1 vote
2 answers
3k 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 ...
0 votes
3 answers
125 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/...
1 vote
0 answers
178 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 ...
3 votes
2 answers
4k 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 ...
5 votes
1 answer
2k 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.
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 ...
1 vote
1 answer
3k 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 ...
0 votes
1 answer
1k views

Do CPUs that support 5-Level Paging 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 ...
2 votes
1 answer
673 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 ...
0 votes
1 answer
128 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 ...

15 30 50 per page
1
2 3 4 5 6

AltStyle によって変換されたページ (->オリジナル) /