Displaying 17 results from an estimated 17 matches for "cpu_affinity".
2014 Feb 26
2
OT: Howto to capture taskset output command
Hi all,
I am trying to set processor affinity for a specific process using a
shell script without result. Script:
#!/bin/sh -x
cpu_affinity_ok="2"
cpu_affinity="taskset -p -c `cat /tmp/test.pid` | awk '{print $6}'"
if [ -f /tmp/test.pid ]; then
if [ "$cpu_affinity" == "$cpu_affinity_ok" ]; then
exit 0
else
taskset -p -c 2 `cat /tmp/test.pid`
fi
fi
This scrip...
2013 Mar 27
2
[PATCH] x86/S3: Restore broken vcpu affinity on resume (v3)
...uler
path, save a copy of the current cpu affinity, and mark a flag to
restore it later.
Later, in the resume process, when enabling nonboot cpus restore these
affinities.
v2:
Fix formatting problems.
remove early return in cpu_disable_scheduler() path.
v3:
Fix remaining errant tab
Move restore_vcpu_affinity() to thaw_domains(), eliminating the need to
promote for_each_cpupool()
Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com>
---
xen/arch/x86/acpi/power.c | 4 ++++
xen/common/domain.c | 2 ++
xen/common/schedule.c | 41 ++++++++++++++++++++++++++++++++++++++++-
xen/incl...
2013 Sep 17
1
[PATCH v2] xen: sched_credit: filter node-affinity mask against online cpus
...& of vcpu-affinity and the set of online cpus
+ * in the domain''s cpupool.
*/
-#define __vcpu_has_node_affinity(vc) \
- ( !(cpumask_full(CSCHED_DOM(vc->domain)->node_affinity_cpumask) \
- || !cpumask_intersects(vc->cpu_affinity, \
- CSCHED_DOM(vc->domain)->node_affinity_cpumask) \
- || vc->domain->auto_node_affinity == 1) )
+static inline int __vcpu_has_node_affinity(struct vcpu *vc, cpumask_t *mask)
+{
+ if ( vc->domain->auto_node_affi...
2013 Mar 15
2
strange phenomenon on CPU affinity
Hello,
My testing machine has 2 quad-core CPU (It supports hyperthreading,
but i disable it in BIOS). I uses Xen 4.0.1 as the hypervisor. When I use 8
VMs to conduct a test, CPU affinity of the VMs is very strange. Like this:
vm_name vcpu_num cpu_affinity
Domain-0 8 any
VM1 4 1,3,5,7
VM2 4 1,3,5,7
VM3 4 1,3,5,7
VM4 4 1,3,5,7
VM5 4 1,3,5,7
VM6 4 0,2,4,6
VM7 4 0,2,4,6
VM8 4 0,2,4,6
I do not set the CPU affinity in th...
2012 Oct 17
28
Xen PVM: Strange lockups when running PostgreSQL load
I am currently looking at a bug report[1] which is happening when
a Xen PVM guest with multiple VCPUs is running a high IO database
load (a test script is available in the bug report).
In experimenting it seems that this happens (or is getting more
likely) when the number of VCPUs is 8 or higher (though I have
not tried 6, only 2 and 4), having autogroup enabled seems to
make it more likely, too
2012 Sep 18
6
[PATCH 2/5] Xen/MCE: vMCE injection
...ick(v);
}
else
{
- mce_printk(MCE_VERBOSE, "MCE: inject vMCE to PV DOM%d\n",
- d->domain_id);
- if ( guest_has_trap_callback(d, 0, TRAP_machine_check) )
- {
- cpumask_copy(d->vcpu[0]->cpu_affinity_tmp,
- d->vcpu[0]->cpu_affinity);
- mce_printk(MCE_VERBOSE, "MCE: CPU%d set affinity, old %d\n",
- cpu, d->vcpu[0]->processor);
- vcpu_set_affinity(d->vcpu[0], cpumask_of(cpu));
-...
2007 Aug 30
0
[PATCH][Retry 1] 1/4: cpufreq/PowerNow! in Xen: Xen timer changes
...re pinned onto their respective physical CPUs.
*/
v->processor = processor;
- if ( is_idle_domain(d) || ((d->domain_id == 0) && opt_dom0_vcpus_pin) )
+ if ( is_idle_domain(d) || ((d->domain_id == 0) && ( opt_cpufreq || opt_dom0_vcpus_pin) ) )
v->cpu_affinity = cpumask_of_cpu(processor);
else
cpus_setall(v->cpu_affinity);
@@ -254,7 +256,7 @@ int vcpu_set_affinity(struct vcpu *v, cp
{
cpumask_t online_affinity;
- if ( (v->domain->domain_id == 0) && opt_dom0_vcpus_pin )
+ if ( (v->domain->domain_id == 0)...
2009 Apr 06
5
Config to set CPU affinity and distribute interrupts
...af=e8000001
(XEN) XenPage 00000beb: caf=80000001, taf=e8000001
(XEN) XenPage 00000bea: caf=80000001, taf=e8000001
(XEN) XenPage 00000be9: caf=80000002, taf=e8000002
(XEN) VCPU information and callbacks for domain 0:
(XEN) VCPU0: CPU0 [has=T] flags=0 upcall_pend = 00, upcall_mask = 00 dirty_cpus={0} cpu_affinity={0}
(XEN) 100 Hz periodic timer (period 10 ms)
(XEN) Notifying guest (virq 1, port 0, stat 0/-1/0)
(XEN) VCPU1: CPU1 [has=F] flags=2 upcall_pend = 00, upcall_mask = 01 dirty_cpus={} cpu_affinity={0-31}
(XEN) 100 Hz periodic timer (period 10 ms)
(XEN) Notifying guest (virq 1, port 0, stat 0/-1/0)
(X...
2012 Dec 03
17
[PATCH 0 of 3] xen: sched_credit: fix tickling and add some tracing
Hello,
This small series deals with some weirdness in the mechanism with which the
credit scheduler choses what PCPU to tickle upon a VCPU wake-up. Details are
available in the changelog of the first patch.
The new approach has been extensively benchmarked and proved itself either
beneficial or harmless. That means it does not introduce any significant amount
of overhead and/or performances
2008 Sep 05
0
3.2.1+ HVM + HAP + NUMA - Poor Memory Performance
...worse 2.67GB/sec.
Is there likely something wrong with my NUMA config? Anyone have any
benchmark results to share on Barcelona with HAP enabled? Do I need to
pin Dom0 to a particular CPU?
HAP looks OK:
(XEN) VCPU0: CPU4 [has=F] flags=1 upcall_pend = 00, upcall_mask = 00
dirty_cpus={4} cpu_affinity={4}
(XEN) paging assistance: hap, 4 levels
NUMA looks OK:
nr_cpus : 8
nr_nodes : 2
cores_per_socket : 4
threads_per_core : 1
cpu_mhz : 2000
Thanks in advance,
Rob
The SAQ Group
Registered Office: 18 Chapel Street, Peter...
2008 Mar 19
0
RE: [Xen-ia64-devel] New error trying to create a domain(usinglatestxend-unstable
Hi Keir,
The CS# 17131 which I write for bind guest to NUMA node via cpu affinity
missed one condition existing in some machines, where there aren''t any
cpus but only memories. Under this condition it will fail to set
cpu_affinity because of none parameter. I cope with this condition in
the new patch and make a little change of the methods to find suitable
node to bind guest. When counting the VCPUs which have pinned to node, I
use an average count instead the original sum count of Vcpus pinning
cpus on certain node in case...
2024 Jul 23
1
NSD 4.10.1rc2 pre-release
...ct punctuation of log messages.
- Fix for #317, document more text on pidfile permissions.
- Fix #334: RFC8482 behavior documentation.
- Fix for OpenSSL 3.0 deprecated functions.
- Merge #341: Fix allow-query wording in nsd.conf.5.in.
- Fix test script from making spurious output.
- Fix cpu_affinity and socket_partitioning tests for
--enable-log-role.
- Fix #344: Update simdzone.
- Fix #347: Adjust verbosity for TLS (+TCP) to be 5.
- Merge #348: Move TLS logging to verbosity level 5.
- For #347: Also adjust verbosity of log message for remaining TCP
connections.
- Merge #349:...
2011 Nov 08
48
Need help with fixing the Xen waitqueue feature
The patch ''mem_event: use wait queue when ring is full'' I just sent out
makes use of the waitqueue feature. There are two issues I get with the
change applied:
I think I got the logic right, and in my testing vcpu->pause_count drops
to zero in p2m_mem_paging_resume(). But for some reason the vcpu does
not make progress after the first wakeup. In my debugging there is one
2006 Oct 04
0
[PATCH,RFC 6/17] 32-on-64 shared info handling
...vcpu_info(v, evtchn_upcall_pending),
+ vcpu_info(v, evtchn_upcall_mask));
cpuset_print(cpuset, sizeof(cpuset), v->vcpu_dirty_cpumask);
printk("dirty_cpus=%s ", cpuset);
cpuset_print(cpuset, sizeof(cpuset), v->cpu_affinity);
@@ -176,11 +177,11 @@ static void dump_domains(unsigned char k
printk(" Notifying guest (virq %d, port %d, stat %d/%d/%d)\n",
VIRQ_DEBUG, v->virq_to_evtchn[VIRQ_DEBUG],
test_bit(v->virq_to_evtchn[VIRQ_DEBUG],
-...
2013 Jul 18
15
[PATCH v5 0/5] xen: public interface and foreign struct check changes for arm
I last posted this back in April to critical acclaim (AKA near total
silence).
I''m not sure who looks after tools/include/xen-foreign. I had thought it
was Jan but I think I was confused and was thinking of the semi-related
xen/include/compat stuff. IOW I think nobody felt "responsible".
Unless there''s any objection lets just treat this as coming under tools.
The
2012 Dec 12
2
[PATCH v7 1/2] xen: unify domain locking in domctl code
These two patches were originally part of the XSM series that I have
posted, and remain prerequisites for that series. However, they are
independent of the XSM changes and are a useful simplification
regardless of the use of XSM.
The Acked-bys on these patches were provided before rebasing them over
the copyback changes in 26268:1b72138bddda, which had minor conflicts
that I resolved.
[PATCH
2013 Sep 23
57
[PATCH RFC v13 00/20] Introduce PVH domU support
This patch series is a reworking of a series developed by Mukesh
Rathor at Oracle. The entirety of the design and development was done
by him; I have only reworked, reorganized, and simplified things in a
way that I think makes more sense. The vast majority of the credit
for this effort therefore goes to him. This version is labelled v13
because it is based on his most recent series, v11.