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: 1022
ID: 55391
Credit: 888,487,813
RAC: 136,079
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,055,323)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,443,837)PPS LLR Sapphire: Earned 20,000,000 credits (34,651,587)PSP LLR Turquoise: Earned 5,000,000 credits (6,587,988)SoB LLR Sapphire: Earned 20,000,000 credits (45,081,394)SR5 LLR Turquoise: Earned 5,000,000 credits (6,205,694)SGS LLR Ruby: Earned 2,000,000 credits (3,627,819)TRP LLR Turquoise: Earned 5,000,000 credits (7,078,152)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 (463,452,443)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,798,063)GFN Emerald: Earned 50,000,000 credits (57,113,430)WW Ruby: Earned 2,000,000 credits (4,652,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 - 2022 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.68, 2.21, 2.18
Generated 16 Aug 2022 | 16:49:10 UTC