Archive for 'Solaris Misc'
With the new year upon us, I thought I would jot down my Solaris feature wish list for 2006: 10. Multiple simultaneous host access to ZFS file systems (read and write) 9. NFS server support in Zones 8. Dynamic PID support in the DTrace PID provider (e.g., pid*httpd*:::) 7. Support for enabling and disabling services [...]
While reviewing some system information last week , I came across a discrepancy (which I would think is a bug — at least according to the idle time description in the w manual pages) in the Solaris ‘w’ output: $ date Wed Dec 21 10:19:59 EST 2005 $ w 10:19am up 5 day(s), 19:52, 2 [...]
My friend Clay sent me a cool tip this week. If you would like to save files that have been processed with cpp, you can set the CFLAGS “-save-temps” option: $ export CFLAGS=-save-temps $ make This will cause a bunch of .i files to be created, which can simplify the process of figuring out how [...]
While reading through the Solaris source code for in.rarpd, I came across the following amusing set of comments: 1228 /* 1229 * Ask IP for our IP address. 1230 */ 1231 (void) snprintf(ifr.ifr_name, sizeof (ifr.ifr_name), “%s%d”, dev, unit); 1232 if (strioctl(fd, SIOCGIFADDR, -1, sizeof (struct ifreq), 1233 (char *)&ifr) < 0) 1234 syserr(“SIOCGIFADDR”); 1235 *ipp [...]
While reading through comp.unix.solaris, I came across the following hung serial port post from Andrew Gabriel: There is a bug (actually a POSIX bug) that can leave the port permanently wedged if there are characters buffered to be transmitted but they never will be (e.g. due to flow controlled off). This is circumvented in Solaris [...]
While debugging a problem tonight, I had to read through the Solaris mutex.c source code file. If you are interested in learning the nitty gritty details behind mutual exclusion, I highly recommend reading over the section Big Theory Statement for mutual exclusion locking primitives. I am amazed at how well the Sun engineers commented the [...]