logo       

Re: 2.1.9 on BSD 6.2: msg#00117

Subject: Re: 2.1.9 on BSD 6.2
Garrick,

We have BSD 4.x and BSD 6.x. We're actually creating a new freebsd6 resmom 
directory. It seems that
quite a bit has changed in 6.x in other areas as well, so we decided to create 
a whole new resmom.

If you have a sec I have a few questions about the autoconf and build system. 
We need to ensure that
the new resmom directory is being built properly on BSD 6 systems.

-- 
Joshua Butikofer
Cluster Resources, Inc.

josh@xxxxxxxxxxxxxxxxxxxx
Voice: (801) 717-3707
Fax:   (801) 717-3738
--------------------------


Garrick Staples wrote:
> On Mon, Nov 19, 2007 at 10:39:44AM -0800, Alexander Saydakov alleged:
>> Hi!
>>
>> I have tried Torque 2.1.9 on FreeBSD 6.2. Nodes report crazy load averages,
>> so the server thinks that nodes are busy. I suspect it has to do with *rv =
>> (double)la[0]/(double)FSCALE in src/resmom/freebsd5/mom_mach.c
>>
>> I patched it like this, after which it works great:
>>
>> *** 1801,1823 ****
>>         double  *rv;
>>   {
>>         char    *id = "get_la";
>> -       long    la[3];
>>
>>         if (kd == NULL) {
>>                 log_err(-1, id, nokernel);
>>                 return (rm_errno = RM_ERR_SYSTEM);
>>         }
>> !       if (nl[KSYM_LOAD].n_type == 0) {
>> !               log_err(-1, id, "loadaverage count not found");
>> !               return (rm_errno = RM_ERR_SYSTEM);
>> !       }
>> !       if (kvm_read(kd, nl[KSYM_LOAD].n_value, la,
>> !                       sizeof(la)) != sizeof(la)) {
>> !               log_err(errno, id, "kvm_read");
>>                 return (rm_errno = RM_ERR_SYSTEM);
>>         }
>>
>> -       *rv = (double)la[0]/(double)FSCALE;
>>         return 0;
>>   }
>>
>> --- 1801,1816 ----
>>         double  *rv;
>>   {
>>         char    *id = "get_la";
>>
>>         if (kd == NULL) {
>>                 log_err(-1, id, nokernel);
>>                 return (rm_errno = RM_ERR_SYSTEM);
>>         }
>> !       if (kvm_getloadavg(kd, rv, 1) != 1) {
>> !               log_err(errno, id, "kvm_getloadavg");
>>                 return (rm_errno = RM_ERR_SYSTEM);
>>         }
>>
>>         return 0;
>>   }
>>
>>
>> I am not quite sure if the patch would work for BSD5. Say, BSD4 does not
>> seem to have kvm_getloadavg()
>>
>> And I suppose you know already that Torque 2.2.1 does not even compile on
>> both BSD4 and BSD6.2
> 
> I'd hate to fix one and break another.
> 
> Is there anyone with all 3 BSDs that can patch it up to run or build on all 3?
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> torqueusers mailing list
> torqueusers@xxxxxxxxxxxxxxxx
> http://www.supercluster.org/mailman/listinfo/torqueusers


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe