Skip to content

sdgdsffdsfff/lua-affinity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lua-affinity

A Lua module used for controlling processor affinity on linux

For more details, check out sample.lua.

API:

mask,err=affinity.getaffinity(pid)

Get the affinity mask of the process associate with the pid.

mask,err=affinity.setaffinity(pid,mask)

Set the affinity mask of the process associate with the pid.

License

This module is licensed under the Apache license.

About

Lua的CPU亲缘性绑定模块,支持5.1

Resources

Stars

Watchers

Forks

Packages

No packages published