PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Project Staging Area : Setting CPU Affinity of prpclient in Linux

Author Message
Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 764
ID: 55391
Credit: 688,011,979
RAC: 81,668
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (18,113,759)PSP LLR Turquoise: Earned 5,000,000 credits (5,027,818)SoB LLR Sapphire: Earned 20,000,000 credits (24,671,131)SR5 LLR Turquoise: Earned 5,000,000 credits (6,110,877)SGS LLR Ruby: Earned 2,000,000 credits (3,477,744)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (312,256,351)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,616,128)GFN Emerald: Earned 50,000,000 credits (52,755,348)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 75064 - Posted: 1 Apr 2014 | 5:34:18 UTC

In version 5.2.8 of prpclient for Linux, prpclient.ini contains a cpu_affinity parameter that may or may not work (it didn't do anything for me). Here are script changes for this client to run each program instance on a separate core (core numbers start at 0).

1) Change programs/startx.sh before "installing" the working directories, to contain

taskset -c `dc -e "$1 1 - p"` ./prpclient

2) Change the start script you use (in this example 2-dual-start-prpclient.sh) to contain
for x in {1..2}; do pushd prpclient-$x; xterm -T prpclient-$x -e ./startx.sh $x & popd; done

In Debian-based distros:
dc is part of the dc package (desk calculator)
taskset is part of the util-linux package (Linux utilities)

Message boards : Project Staging Area : Setting CPU Affinity of prpclient in Linux

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2020 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 0.66, 0.64, 0.63
Generated 28 Oct 2020 | 15:10:57 UTC