USENIX 2004 - Day 1, 27 Jun [tech:unix] | Jul 01, 2004 17:36 |
BOSTON - The conference started today, at a bright 9am. My first full day course was "Advanced Solaris System Administration Topics, taught by Peter Baer Galvin.
It was a useful and enlightening class, mostly for the historical perspective and for the discussion on Solaris 9/10 features.
Some nuggets:
- Crash Dumps - Mike Shapiro, a Sun kernel guy, suggests that crash dumps not be written where they can be lost (temp space). He also suggests the use of
dumpadmwhich will let you direct dumps to use raw disk. - Autoclient - Autoclient is dead.
- Swap - Galvin explains that swap usage is allocated in a round-robin fashion, in 1MB increments. If you choose to have >1 swap partitions, put them on separate disks or even controllers. But, if you're using swap, you might have bigger problems... Always mirror your swap space. Swapping is 10^4 slower than RAM.
# swap -lvs.swap -s-# swap -lreports on true swap,swap -sactually includes physical memory, thus reports on virtual memory.- Shutting Down -
haltandrebootskip the "K" files, which can be bad for database servers, since things aren't shutdown cleanly. - Recovery - Ever damage your
/etc/systemso badly that you can't boot? Useboot -ato specify the path to a backup copy of the file or even point it to/dev/nullto get your host back on its feet. - Exiting Faster -
pgrepandpkillmake your scripts shut the system down faster by accessing the/procfilesystem directly rather than the kludgy grepping ofpsoutput. - "short read" errors - Too many files in /.
- Privileges - Solaris 10 will be adding substantial new features, notably expanded privileges to allow finer grained control than
setuidcan provide. - Inodes - When creating a filesystem, tune the number of inodes created to fit your application. Mail and news use a lot, databases comparatively few.
- Intent Logging - File creation rates increase from 5/second to 200/second using intent logging. This is the default in Sol10, optional in Sol9, and should be feared and avoided in Sol8.
- UFS - Sun claims that UFS performance is on par with vxfs in Solaris 9.
- VXFS - Due to its extent-based approach, vxfs actually suffers from fragmentation and needs to be de-fragged. The utility to do this must be manually enabled.
- New commands - Lots of new "p" commands for working with processes:
pcred, pflags, pmap, psig, pstop, ptree, pfiles. - ZFS - "The next great thing". Sun is working on the zetabyte file system, which is "infinitely" expansible, and uses an allocation model, similar to malloc() for memory. Let's hope that it is better behaved... ZFS breaks any backwards compatibility with UFS.
- Tuning and benchmarking - Change only one thing at a time. Reboot. Measure. Repeat. More spindles is always better. Each of the many tools,
vmstat, iostat, mpstat, sar, lockstat, netstateach provide a small piece of the puzzle when tuning or troubleshooting. Learn what they are each telling you. - CPU's - Sun possesses "M-values" calculations for all CPU's which can help you get a solid idea about relative performance. Oracle considers the Sparc4 arhictecture as 2-CPU's. Beware of licensing charges.
- http://blogs.sun.com/bmc
Excellent class, nearly 400 slides of information.
Tags:blog on technorati, delicious, flickr, northerncrown
Context: [Google Search]
