Coder Social home page Coder Social logo

folding-scripts's Introduction

An assortment of scripts used to wrangle Folding@Home processes. See my blog post Making Every Cycle Count in the Fight Against COVID for a deeper introduction and background on this repository. These scripts are provided as reference only, and commented out lines are included in scripts to leave a history of techniques attempted.

Important files:

This script is currently runs as a cron job on my dedicated folding box and handles assignment of folding threads to CPU cores. It additionally sets compute and IO scheduler hints on managed processes. It is slightly less complicated than the script I originally published called better_pinning.sh.

A script (currently very tailored to my TR 1920x machine) for pinning folding at home cores to specific threads, and moving all other threads appropriately. This was my first attempt at writing a management script, and it has been obsoleted by dumber_pinning.sh.

A script for moving kernel threads and IRQs around to processors you specify (mostly so they don't interrupt folding threads).

A bash script interposed between the F@H manager and the GPU folding core that forces all memory allocations to be bound to NUMA node 1 (see blog post in introduction).

A bash script interposed between the F@H manager and the CPU folding core that forces all memory allocations to be bound to the node upon which a thread is running. Also sets up the LD_PRELOAD for not calling sched_yield.

A C file that, when built using the provided Makefile, produces a shared object that can be preloaded that always causes the libc wrapper over the sched_yield syscall to return 0 before every yielding to the kernel. Also optionally can be built in a configruation that allows for selective yielding, but there's no evidence there's any use case where that leads to a performance gain.

Builds the shared library described above using GCC settings tuned for the Zen v1 microarcheticture.

License:

Dual licensed under the MIT license and the AntiLicense, see LICENSE.md.

folding-scripts's People

Contributors

mitchellharper12 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.