|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Solaris 10 Issues With fetch-testmsg-whitelist
by Taso N. Devetzis-2
::
Rate this Message:
Reply (Restricted by the Administrator) | View Threaded | Show Only this Message Solaris 10 exposes a couple of issues with the code designed to delay
the HTTP fetch and mitigate the load on the servers in fetch-testmsg-whitelist. The script otherwise runs fine, it just does not add a sleep delay. The `ps' command on Solaris 10 (and probably other SysV systems) defaults to displaying processes with the same eUID and controlling terminal as the invoker. When run from a script from cron, no controlling terminal is present and the command fails. The `cksum' command on Solaris 10 inserts a TAB (instead of a space) between the checksum and the octet count. This breaks the `sed' substitution command. The following small patch resolves these issues on Solaris 10, and should not break anything on other systems: + Add `-e' option to `ps' + Tweak `sed' regexp to include TABs Note that there is TAB in the `sed' command (beware cut-and-paste). Thanks, /taso _______________________________________________ DCC mailing list DCC@... http://www.rhyolite.com/mailman/listinfo/dcc |
|
|
Re: Solaris 10 Issues With fetch-testmsg-whitelist
by Taso N. Devetzis-3
::
Rate this Message:
Reply (Restricted by the Administrator) | View Threaded | Show Only this Message "Taso N. Devetzis" <devetzis+dcc@...> writes:
> The following small patch resolves these issues on Solaris 10, and > should not break anything on other systems: > > + Add `-e' option to `ps' > + Tweak `sed' regexp to include TABs I see that the mailing list strips attachments. Since it is tiny I'll include the patch inline (note the TAB). I forgot to mention that this is against DCC 1.3.126. Thanks, /taso --- fetch-testmsg-whitelist- Wed May 26 14:39:54 2010 +++ fetch-testmsg-whitelist Sat Aug 21 17:23:46 2010 @@ -71,7 +71,7 @@ # Delay for an arbitrary, somewhat random number of seconds to try to spread # the load on the HTTP server for the list. Some versions of cksum yield # 10 digit numbers that some versions of expr think are negative. -RND=`ps | cksum | sed -e 's/ */ + /' -e 's/\([0-9]\{6\}\)\([0-9]\)/\1 + \2/g'` +RND=`ps -e | cksum | sed -e 's/[ ]\{1,\}/ + /' -e 's/\([0-9]\{6\}\)\([0-9]\)/\1 + \2/g'` RND=`expr \( $RND \) % 123` sleep $RND _______________________________________________ DCC mailing list DCC@... http://www.rhyolite.com/mailman/listinfo/dcc |
|
|
Re: Solaris 10 Issues With fetch-testmsg-whitelist
by Vernon Schryver
::
Rate this Message:
Reply (Restricted by the Administrator) | View Threaded | Show Only this Message > From: "Taso N. Devetzis" <devetzis+dcc@...>
> I forgot to mention that this is against DCC 1.3.126. It's worth repeating that the script runs but without the somewhat random delay. > +RND=`ps -e | cksum | sed -e 's/[ ]\{1,\}/ + /' -e 's/\([0-9]\{6\}\)\([0-9]\)/\1 + \2/g'` `ps -e` on FreeBSD 8.1 can whine "ps: Process environment requires procfs(5)" So I guess the fix will have to depend on a new ./configure variable, or use some other command as a source of some entropy such as `ls -lia`. thanks, Vernon Schryver vjs@... _______________________________________________ DCC mailing list DCC@... http://www.rhyolite.com/mailman/listinfo/dcc |
|
|
Re: Solaris 10 Issues With fetch-testmsg-whitelist
by Taso N. Devetzis-3
::
Rate this Message:
Reply (Restricted by the Administrator) | View Threaded | Show Only this Message Vernon Schryver <vjs@...> writes:
> `ps -e` on FreeBSD 8.1 can whine > "ps: Process environment requires procfs(5)" Interesting. I verified on OpenBSD prior to submitting but I do not have a FreeBSD system. Good catch. > So I guess the fix will have to depend on a new ./configure variable, > or use some other command as a source of some entropy such as `ls -lia`. Sounds portable (for POSIX systems at least). Thanks, /taso _______________________________________________ DCC mailing list DCC@... http://www.rhyolite.com/mailman/listinfo/dcc |
|
|
dcc.iecc.com upgraded
by John R. Levine
::
Rate this Message:
Reply (Restricted by the Administrator) | View Threaded | Show Only this Message I have moved my DCC server to a dual processor 2.6 GHz AMD64 with 12G of
memory. (Not a bad computer for under $500, including the six 73G 15K rpm hot swap disks.) The new server has the same IP address as the old one so other than a burp a few minutes ago as I took the old server down and brought the new one up, it shouldn't look very different. Just a lot faster. Regards, John Levine, johnl@..., Primary Perpetrator of "The Internet for Dummies", Information Superhighwayman wanna-be, http://www.johnlevine.com, ex-Mayor Please consider the environment before sending this e-mail. _______________________________________________ DCC mailing list DCC@... http://www.rhyolite.com/mailman/listinfo/dcc |
| Free embeddable forum powered by Nabble | Forum Help |