Questions tagged [smp]

Symmetric multiprocessing

"Symmetric multiprocessing (SMP) involves a multiprocessor computer hardware architecture where two or more identical processors are connected to a single shared main memory and are controlled by a single OS instance. Most common multiprocessor systems today use an SMP architecture." [Source: Wikipedia.]

144 questions
4
votes
2 answers

How could I know which core a process is running on?

I am currently working on a project about setting process to one core in linux environment. I use sched_setaffinity to do this job and I wonder whether there are some functions provided by linux to get which core the process is running on. I use…
terry
  • 1,247
  • 4
  • 13
  • 11
4
votes
1 answer

by which instruction the secondary core is triggered while starting the secondary cpu

the booting of secondary cpu is initiated by the primary core. and some work is completed on the primary cpu and some is completed on the secondary cpu to complete the hotplug operation for cpu_up. I am trying to find the exact instruction that is…
Pankaj Gupta
  • 309
  • 2
  • 10
4
votes
2 answers

What are the differences between Symmetric Multiprocessing (SMP) and Multiprocessing (MP)?

I know MP is the manage of multiple processes within multiple processors, but is there any difference between that and SMP? Is it that in SMP you can execute multiple threads from the same process simultaniously, and MP you can only have one process…
Jwags
  • 404
  • 4
  • 13
4
votes
7 answers

What is the best way for interprocessor communication in Linux?

I have two CPUs on the chip and they have a shared memory. This is not a SMP architecture. Just two CPUs on the chip with shared memory. There is a Unix-like operating system on the first CPU and there is a Linux operating system on the second…
Sergey Smelov
  • 1,091
  • 3
  • 13
  • 26
4
votes
2 answers

Is it faster to avoid writes when the values might be the same

On SMP machines is there a performance benefit to #2 vs #1: 1) x = 0; or 2) if (x) x = 0; I was thinking that the behind the scenes overhead to manage cache coherency between the CPUs might have some cost. Am I nuts?
johnnycrash
  • 4,674
  • 5
  • 29
  • 51
3
votes
2 answers

Setting affinity in multicore x86 processors

( I ask because it was before serious SMP and multicore that I studied OS. I like to have some vision of how code is being executed. ) If I have a multicore x86 CPU booting directly into my program. Can someone recommend a website which describes…
BubbaT
  • 1,802
  • 4
  • 21
  • 24
3
votes
3 answers

Best hardware/software solution for parallel makes?

We've got a Linux-based build system in which a build consists of many different embedded targets (with correspondingly different drivers and featuresets enabled), each one built with another single main source tree. Rather than try to convert our…
Allan Anderson
  • 564
  • 4
  • 14
3
votes
2 answers

Is there a way to take advantage of multi-core when dealing with network connections?

When we doing network programming, no matter you use multi-process, multi-thread or select/poll(epoll), there is only one process/thread to deal with accept the connection on same port. And if you want to take advantage of multi-cores, you need to…
easy
  • 31
  • 2
3
votes
1 answer

Kinds of IPI for x86 architecture in Linux

I would like to know what are the different kinds of IPIs available for x86_64 in Linux. In particular, I want to find out the different interrupts handlers for IPI interrupts. In Understanding the Linux Kernel, 3rd Edition by Daniel P. Bovet,…
3
votes
1 answer

How would the MONITOR instruction (_mm_monitor intrinsic) be used by a driver?

I am exploring the usage of MONITOR instruction (or the equivalent intrinsic, _mm_monitor). Although I found literature describing them, I could not find any concrete examples/samples on how to use it. Can anyone share an example of how this…
CodeNinza
  • 31
  • 3
3
votes
3 answers

nr_cpus boot parameter in Linux kernel

I was browsing Linux kernel code to understand the nr_cpus boot parameter. As per the documentation, (https://www.kernel.org/doc/Documentation/kernel-parameters.txt) [SMP] Maximum number of processors that an SMP kernel could support. …
alex
  • 1,171
  • 1
  • 12
  • 18
3
votes
1 answer

U-boot will run on single core?

I am working on TI Jacinto6(ARM CortexA15) based board. I am understanding U-boot source. As per start.S file, following assembly instructions are executed to disable L1 I/D cache and TLB. This instructions are from…
user3693586
  • 1,067
  • 3
  • 16
  • 36
3
votes
1 answer

what is the basic concept behind using pen_release in the starting the cpus in linux

in linux kernel smp, pen_release identifier is used starting the secondary cpus, also i have found that it is being used in other places as well. I have checked its values in the sysdump, also tried understanding it with the lauterbach setup but…
Pankaj Gupta
  • 309
  • 2
  • 10
3
votes
1 answer

How to correctly use a startup-ipi to start an application processor?

My goal is to let my own kernel start an application cpu. It uses the same mechanism as the linux kernel: Send asserting and level triggered init-IPI Wait... Send deasserting and level triggered init-IPI Wait... Send up to two startup-IPIs with…
user1678062
  • 563
  • 4
  • 15
3
votes
4 answers

Erlang Documentation/SMP: single-node and multi-node per machine or per application, and the confusion that may follow

I'm studying Erlang's process model at the moment. I have hit a snag in a tech report (section 3, paragraph 2) on Erlang: This explains why it in some cases can be more efficient to run several SMP VM's with one scheduler each instead on one SMP…
Hassan Syed
  • 19,054
  • 9
  • 76
  • 156
1 2
3
9 10