Questions tagged [architecture]
General questions about (UNIX) OS architecture
150
questions
0
votes
0
answers
21
views
Why only LLC miss ratio increase?
On my server, I have a latency critical (LC) task running on NUMA0. To increase utilization, I have also deployed some best-effort (BE) tasks on the same NUMA0. Furthermore, I have enabled some ...
2
votes
2
answers
45
views
Page table address field for uncached page
According to Bryant and O'Hallaron's (somewhat abstracted) model of the page table on Linux-like systems, each page table entry (PTE) has an address field that holds one of three kinds of value: (1) ...
8
votes
1
answer
2k
views
Why can an aarch64 ELF executable be run on an x86_64 machine?
I compiled a simple "Hello World" C program on Raspberry Pi 3, which was then transferred to an AMD64 laptop. Out of curiosity, I executed it, and it runs even though I did not expect it to:
...
1
vote
0
answers
65
views
Why are core-to-core latencies stochastic when the executable is run twice in succession but not stochastic within a run?
I'm benchmarking core-to-core latency on my server to find good core affinities.
I'm trying to set the core affinities of two threads to different CPUs, and time the latency of message between the ...
11
votes
1
answer
4k
views
Do GUIX and NixOS differ architecturally?
(This is not a "which distribution is better" question!)
GNU GUIX and NixOS are two Linux distributions based on the NixOS package manager.
I realize that GUIX seems to use Guile for ...
1
vote
0
answers
34
views
Which component of the Linux (OS) stack handle BT speakers and smartwatches?
I reverse engineered Bluetooth interfaces of the UE Boom 3 speaker and Pebble 2 smartwatch, documented them and made Python scripts to use all the same features of their official iOS apps. I could ...
1
vote
1
answer
2k
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
0
answers
864
views
Cannot run 32 bit executables on a 64 bit system
I've been pulling my hair out for days trying to run a 32 bit binary on a 64 bit arch installation. When I do try to run it, using ./scarlet, I get this:
bash: ./scarlet: no such file or directory
...
1
vote
1
answer
489
views
How does nodejs achieve seemingly binary compatibility between different linux distros
If you go to the download site of nodejs you can select Linux Binaries (x64) which is a tar archive that (among other files) contains a bin/ folder with a binary called nodejs.
How is nodejs able to ...
3
votes
2
answers
3k
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
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.
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 ...
5
votes
1
answer
4k
views
Cannot remove architecture i386
I'm using 64 bit Kali Linux, previously installed i386 architecture and now I want to remove it, because it downloads about 30Mb data for 32bit package every time apt update.
I tried dpkg --remove-...
0
votes
1
answer
5k
views
installing 32-bit architecture in amd64 linux
I'm trying to install 32-bit libraries so I can do stack smashing in a amd64 kalios.`
The instruction for installation on a x86 linux would be:
sudo dpkg --add-architecture i386 &&
sudo apt-...
3
votes
1
answer
4k
views
Why does hostnamectl return arm64, but uname returns aarch64? (Ubuntu 20.04.2 on raspberry pi)
I have a raspberry pi running Ubuntu 20.04.3 LTS. Two different architectures are being returned depending on the command: aarch64 and arm64. Why?
hostnamectl
ubuntu@ubuntu:~$ hostnamectl
Static ...
0
votes
1
answer
4k
views
Why can't I add i386 architecture to Debian Bullseye?
I try to add 32 bit (i386) architecture to my Debian Bullseye using :
sudo dpkg --add-architecture i386
But it gives me no error or no success message. When I used
sudo dpkg --print-architecture
...
1
vote
1
answer
3k
views
dpkg-deb treats my architecture as amd64 instead of x86-64
I just created a simple .deb package (using this tutorial). This is my control file:
Package: bla
Version: 1.0
Architecture: x86_64
Maintainer: bla
Description: bla
The Architecture I got from uname -...
1
vote
1
answer
6k
views
How to crossgrade debian (switch from i386 to amd64)
How to switch a Debian installation from i386 to amd64 architecture (and vice versa) without reinstalling the system?
0
votes
2
answers
3k
views
multi-core linux workstation recognizes only 1 cpu, 1 core, 1 thread
I'm using ubuntu 20.04 on Dell Precision 7820.
$ uname -a
Linux myhost 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Only one cpu is used/known by the OS,...
2
votes
1
answer
125
views
Why are mounts with an active working directory "busy"?
Linux appears not to mind if I move or delete a file or directory that is still in use by a process. So why does it complain if I try to unmount a device that is in use as a working directory by a ...
0
votes
0
answers
31
views
uname -m -p -i. What does every parameter stand for? [duplicate]
I have CentOS7 installed on my computer. uname -a prints the following:
Linux c7 3.10.0-1127.el7.centos.plus.i686 #1 SMP Sun Apr 5 18:08:31 UTC 2020 i686 i686 i386 GNU/Linux
As stated in man uname ...
1
vote
1
answer
2k
views
How to install x32 abi support on Fedora?
As I m switching distribution, this question is an extension of this problem for getting maximum performance from a cpu hungry program which can t handle 64 bits pointers.
Because the problem isn t ...
0
votes
1
answer
402
views
Could thread be counted as a CPU? [duplicate]
So I typed in lscpu into my terminal and saw this:
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
The no. of CPU(s) is 4 here ...
2
votes
1
answer
3k
views
How do i change the output of "uname -m"
I am trying to execute this shell script - https://raw.githubusercontent.com/oneindex/script/master/gclone.sh
This shell script checks for uname -m output and doesn't like it ( i.e. aarch64 ).
...
1
vote
2
answers
12k
views
Best way to detect architecture for all Linux?
I need in a bash script to detect the architecture of the current Linux. I see sometimes uname is giving the info but is tricky. It depends of the system to show it in one place or another or even not ...
1
vote
1
answer
1k
views
Which Debian architecture should I use for my Intel NUC7I3BNH?
I tried to search for the correct architecture to use for my Intel NUC7I3BNH, but I am none the wiser.
Which architecture would be most appropriate - amd64 or i386?
1
vote
1
answer
130
views
Choosing if using Docker or not, with or without Virtual Machines on a Debian 10... Number of CPU cores, of virtual CPUs? [closed]
Currently I work on my personal computer having an i7-3820 processor with 4 cores, 8 hyperthreads.
I run a standalone apache-spark sat with a parameter of local[6] (6 vCPU) to do some calculations. ...
2
votes
1
answer
2k
views
Building packages: command which yields 'amd64' (like uname)
Suppose I have a makefile that builds my package, and I only want the package to build if the package file is not present:
package: foo_0.0.0_amd64.deb
cd foo-0.0.0 && debuild -uc -us
So ...
0
votes
1
answer
435
views
Temperature sensors in android device
I'm learning Linux architecture, and I became curious about hardware health monitoring which Linux supports.
So, most of the time it is temperature and voltage sensors.
When I open CPU-Z app, I can ...
2
votes
3
answers
52
views
how do i figure out the architecture of certain hardware?
I have a tomtom one XL GPS. It is clearly a linux device: plugging it in shows a stripped down filesystem, and strings gltt | less (a program in the bin) shows:
/lib/ld-linux.so.2
__gmon_start__
...
0
votes
1
answer
94
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, ...
2
votes
1
answer
130
views
Can't install rust-doc on Debian Stretch
I'm running Debian Stretch. According to the Debian website, I should be able to install the package rust-doc, yet I can't:
wizzwizz4@myLaptop:~$ sudo apt install rust-doc
Reading package lists... ...
-5
votes
1
answer
461
views
X Window System in Linux [closed]
What is X window system in linux ? How it is relatable to GNOME and KDE GUI enviornment ? I mean what is the relation between them ? Is X window system and GNOME are same or what ?
-4
votes
2
answers
112
views
Utility dependence in shell
I know that the "layer" architecture of any *nix OS is kernel-shell-utility ("inner to outer").
if we installed say Debian-Server and got some CLI utilities with it,
Should all these utilities work ...
0
votes
1
answer
24
views
How machines agree on whether to use big or small endians?
I know how endians work. I read somewhere a statement "the internet, for instance, agrees on everything being big endians". How does that work? If I have a tcp connection between 2 machines, how do ...
0
votes
1
answer
383
views
Why does upgrading through Ansible commonly considered "idempotent"?
I know that an idempotent function returns a result which is can be returned more than once without changing the application essentially (like adding zero to a number or multiplying that number by 1).
...
0
votes
1
answer
78
views
Do rolling release distros like Arch Linux include kernel upgrades as part of their rolling upgrades?
Do fully rolling_release distros like ArchLinux, openSUSE, Alpine and so forth include kernel-upgrades as part of their rolling upgrades?
Or kernel upgrades are a separate issue even within the ...
0
votes
1
answer
359
views
What's the difference between CMs "push" method (Ansible) to "pull" method (Chef/Puppet)?
I know that some of the advantages of Ansible over many other CMs are these:
Ansible's scripts being written in YAML, a simple serialization language.
The fact that one doesn't have to install it on ...
3
votes
2
answers
229
views
Accessing PHPMyAdmin as installed by its distro package-index from the domain of each website
I have a remote machine with LAMP and PHPMyAdmin (PMA). Let's assume this distro is Debian/Ubuntu.
If I install PMA via apt install phpmyadmin (which will make it to be installed under /usr/share/...
1
vote
3
answers
2k
views
How do i convert 32-bit to 64-bit arch on centos 6?
Currently I installed Centos 6.9 32bit OS in VM and I want to convert into 64-bit architecture in same machine.
I checked lots of stuff over internet but didn't find any forum for same, specifically ...
1
vote
0
answers
38
views
Linux Partition on Different Architecture [duplicate]
I have a Cubieboad 2, Raspberry Pi 3 and an Android Smart Phone.
On Cubieboard and Raspberry, I write Cubian and Raspbian. On Android, I installed Linux Deploy and installed Debian armhf.
All of ...
2
votes
0
answers
203
views
What architecture is bi-endian at runtime?
If I understand correctly x86_64 is a bi-arch, since it supports running native x86 and x86_64 at the same time (no reboot, no reconfiguration). ia64 is a single arch and does not support x86.
I am ...
28
votes
2
answers
8k
views
Why there are `/lib` and `/lib64` but only `/bin`?
In my laptop:
$ cat /etc/issue
Ubuntu 18.04 LTS \n \l
There are two different folders for libraries x86 and x86_64:
~$ ls -1 /
bin
lib
lib64
sbin
...
Why for binaries exists only one ...
15
votes
2
answers
4k
views
Are different Linux/Unix kernels interchangeable?
Can I take a Linux kernel and use it with, say, FreeBSD and vice versa (FreeBSD kernel in, say, a Debian)? Is there a universal answer? What are the limitations? What are the obstructions?
1
vote
3
answers
2k
views
Do variables and aliases fall under the same category?
This is a terminology/architecture question.
Some of the most basic implementations for easier control of a system are variables and aliases (and some might add symlinks).
Both variables and ...
71
votes
6
answers
28k
views
Will a Linux executable compiled on one "flavor" of Linux run on a different one?
Will the executable of a small, extremely simple program, such as the one shown below, that is compiled on one flavor of Linux run on a different flavor? Or would it need to be recompiled?
Does ...
1
vote
2
answers
187
views
How to know how many rows of code are there for a CLI shell?
How to know how many rows of code are there for a CLI shell, not counting empty lines?
The purpose of this question is to learn how I could count the rows of code for both sh and Bash CLI shells.
...
4
votes
1
answer
2k
views
Kernel architecture vs OS architecture
What is the difference between the kernel architecture and the OS architecture? Which of these is relevant when trying to figure out which architecture to compile binaries for?
From what I have read, ...
0
votes
2
answers
447
views
Using a CLI after deleting all shells (rbash, bash, dash, and sh)
As for now, I use my CLI (Command Line Interface) with either rbash, bash, dash, or sh. Given this fact, one can assume that the CLI is not shell dependent, and that even if we will delete all of ...
0
votes
1
answer
171
views
How come a Desktop Environment be one layer under a shell (kernel-DE-shell instead kernel-shell-DE)? [closed]
I ask the following question as a followup to this question.
How come a Desktop Environment be one layer under a shell (kernel-DE-shell instead kernel-shell-DE)?
Why I ask this question
In Ubuntu, ...