Pages

October 12, 2007

Minimal smb.conf for Mac OS X Tiger and Leopard

Hi, I am posting files /etc/smb.conf which work under Mac OS X 10.4.10+ (Tiger) and 10.5 (Leopard) for sharing directory /data to other Linux/Windows machines on LAN without password.

For Mac OS X 10.4.10+ Tiger (Samba 3.0.10) trick was to specify guest account and security. For sharing read/write, uncomment last line.
[global]
guest account = unknown
security = share
server string = skynet
netbios name = skynet
guest ok = yes
oplocks = yes
[data]
path = /data
# read only = no

For Mac OS X 10.5 Leopard (Samba 3.0.25b-apple) remove security line:
[global]
guest account = unknown
server string = skynet
netbios name = skynet
guest ok = yes
oplocks = yes
[data]
path = /data
# read only = no

October 11, 2007

Binding process to specific CPU

Hi, there is easy way to bind process for specific CPU under Linux and Solaris.

Under Linux to bind process to CPU 0:
 taskset -c 0 process

To bind existing process with PID 22560 to processor 1:
taskset -pc 1 22560

For NUMA systems look at numactl utility.

Under Solaris to bind process with PID 208 to CPU 2:
pbind -b 2 208