Zone step explanation

Hi Guys,
I am trying to study zone creation and I saw this step :

zonecfg:work-zone:inherit-pkg-dir> set dir=/usr/sfw

Can anyone kindly explain to me what the sfw mean? what is it for ?

I will aslo appreciate it, if someone can explain to me the code below :

zonecfg:work-zone:rctl> set name=zone.cpu-shares
zonecfg:work-zone:rctl> add value (priv=priviledged, limit=20, action=none)


Thanks a lot guys.

/usr/sfw is a directory where Solaris installs some GNU code, like gcc. This is usually created by installing packages in the first place.

The second block is setting resource limits on the zone - in this case cpu.

If you do not know what this stuff is doing, please do not enter it until you understand fully what the consequences of doing it are. Simply following somebody else's guidelines may work short term but cause you a lot of headaches later on. Like: this job used to run in 10 minutes, now it takes 6 hours, why?

1 Like

Solaris freeware
/usr/sfw contains freeware supported by Sun (now Oracle).
/opt/sfw contains unsupported freeware.

1 Like