Questions tagged [architecture]

General questions about (UNIX) OS architecture

Filter by
Sorted by
Tagged with
1 vote
0 answers
54 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 ...
souser's user avatar
  • 11
11 votes
1 answer
2k 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 ...
einpoklum's user avatar
  • 9,462
1 vote
0 answers
33 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 ...
user568853's user avatar
1 vote
1 answer
881 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
0 answers
685 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 ...
Zany_Zachary1's user avatar
1 vote
1 answer
408 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 ...
Marco's user avatar
  • 158
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
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
5 votes
1 answer
3k 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-...
aj3423's user avatar
  • 215
0 votes
1 answer
4k 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-...
Joel Russo's user avatar
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 ...
ToddB's user avatar
  • 131
0 votes
1 answer
3k 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 ...
user avatar
1 vote
1 answer
2k 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 -...
CIsForCookies's user avatar
1 vote
1 answer
5k 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?
GAD3R's user avatar
  • 66.4k
0 votes
2 answers
2k 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,...
wsdzbm's user avatar
  • 2,826
2 votes
1 answer
116 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 ...
laktak's user avatar
  • 5,876
0 votes
0 answers
29 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 ...
Dosh's user avatar
  • 1
0 votes
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 ...
user2284570's user avatar
0 votes
1 answer
385 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 ...
stagee's user avatar
  • 1
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 ). ...
Badal Singh's user avatar
1 vote
2 answers
10k 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 ...
OscarAkaElvis's user avatar
1 vote
1 answer
927 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?
mhh's user avatar
  • 113
1 vote
1 answer
129 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. ...
Marc Le Bihan's user avatar
2 votes
1 answer
1k 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 ...
Chris's user avatar
  • 961
0 votes
1 answer
408 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 ...
Igor Lerinc's user avatar
2 votes
3 answers
49 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__ ...
j0h's user avatar
  • 3,587
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
2 votes
1 answer
128 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... ...
wizzwizz4's user avatar
  • 527
-5 votes
1 answer
455 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 ?
Thelostcause's user avatar
-4 votes
2 answers
109 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 ...
user avatar
0 votes
1 answer
23 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 ...
SourceEngine's user avatar
0 votes
1 answer
373 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). ...
user avatar
0 votes
1 answer
76 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 ...
user avatar
0 votes
1 answer
346 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 ...
user avatar
3 votes
2 answers
225 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/...
user avatar
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 ...
Nullpointer's user avatar
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 ...
M. Rostami's user avatar
2 votes
0 answers
193 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 ...
malat's user avatar
  • 2,982
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 ...
Gluttton's user avatar
  • 329
14 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?
user avatar
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 ...
Arcticooling's user avatar
70 votes
6 answers
27k 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 ...
JCDeen's user avatar
  • 775
1 vote
2 answers
180 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. ...
Arcticooling's user avatar
4 votes
1 answer
1k 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, ...
just.kidding's user avatar
0 votes
2 answers
426 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 ...
Arcticooling's user avatar
0 votes
1 answer
168 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, ...
Arcticooling's user avatar
0 votes
1 answer
345 views

what are the cflags of this microarchitecture?

I'm looking the cflags for the turion X2 M500 processor I'm doing grep -m1 -A3 "vendor_id" /proc/cpuinfo and the output is: vendor_id : AuthenticAMD cpu family : 16 model : 6 model name ...
riccs_0x's user avatar
  • 538
2 votes
2 answers
9k views

What does this mkfs.ext4 operand mean?

I am using GParted (0.28.1, Fedora 25) to format a external drive and noticed that the command displayed is: mkfs.ext4 -F -O ^64bit -L "INSTALL" /dev/sdd1 When making disks in the past from command ...
Wilf's user avatar
  • 2,385
0 votes
1 answer
2k views

Why doesn't Fedora support i686 architecture?

My desktop has a i686 CPU running macOS and I'm looking to install Fedora 26 i686. It turns out that they only support x86_64 and i386 (plus the various ARM architectures). I've tried to install ...
Exercise To The Reader's user avatar