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: 846
ID: 55391
Credit: 796,121,187
RAC: 424,991
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,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,093,491)PPS LLR Sapphire: Earned 20,000,000 credits (27,557,390)PSP LLR Turquoise: Earned 5,000,000 credits (6,587,988)SoB LLR Sapphire: Earned 20,000,000 credits (35,938,259)SR5 LLR Turquoise: Earned 5,000,000 credits (6,110,877)SGS LLR Ruby: Earned 2,000,000 credits (3,486,325)TRP LLR Turquoise: Earned 5,000,000 credits (7,070,795)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve (suspended) 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 (395,752,650)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 (53,771,465)WW Gold: Earned 500,000 credits (932,000)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 - 2021 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.64, 1.77, 2.00
Generated 20 Oct 2021 | 7:11:06 UTC