An 8 core processor on a Macbook Air that is also energy efficient? That is truly impressive. I never thought I would consider using Macbook Airs after all the years of using Macbook Pros, but Apple surprises me once again.
To offline a core:
echo 0 > /sys/devices/system/cpu/cpuN/online
To online a core:
echo 1 > /sys/devices/system/cpu/cpuN/online
Where cpuN is 0-4. Keep in mind there's always one core you cannot disable to process interrupts.
There isn't an option like taskset on Linux to pin or move tasks among different cores, or like anything that's exposed in Linux's sysfs.
No fan however, is impressive....