Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] condor and Linux kernel
- Date: Fri, 07 Aug 2009 15:04:42 -0500
- From: Ben Burnett <burnett@xxxxxxxxxxx>
- Subject: Re: [Condor-users] condor and Linux kernel
Hi:
Yes it is possible, just use the configuration pipe notation format for local configuration files:
krnlver.sh:
HOST_KERNEL = `uname -r`
<EOF>
And then do exactly as Manikanta recommended:
condor_config:
...
LOCAL_CONFIG_FILE = $(LOCAL_DIR)/krnlver.sh|
...
STARTD_ATTRS = HOST_KERNEL
...
<EOF>
Omitting, of course, the <EOF> junk.
Regards,
-B
-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Mag Gam
Sent: Wednesday, August 05, 2009 6:32 PM
To: Condor-Users Mail List
Subject: Re: [Condor-users] condor and Linux kernel
Thankyou. This solution is good.
However, is it possible to do ads like this:
HOST_KERNEL = `uname -r`
or
HOST_KERNEL= $((uname -r))
something a bit more dynamic versus hard coding it?
TIA
On Wed, Aug 5, 2009 at 10:23 AM, Nick LeRoy<nleroy@xxxxxxxxxxx> wrote:
> On Wednesday 05 August 2009, Manikanta wrote:
>> As far as my knowledge on condor goes this cant be possible using
>> existing classAds
>>
>> one work around i know of is you need to add a custom machine ad for the
>> execute node advertising its kernel and in the job requirements request for
>> the kernel = "xx" ad.
>>
>> example
>> At execute node config file add
>> HOST_KERNEL = "2.6"
>> STARTD_ATTRS = HOST_KERNEL
>
> A perhaps better way to generate this information would be to use
> the "hawkeye" mechanism built into the Startd.. A simple script could parse
> the contents of /proc/version or run 'uname'. Here's a setup that we use
> here at UW to publish this info.
>
> Hope this helps
>
> -Nick
>
> CRON_JOBLIST = $(CRON_JOBLIST) kernel
> CRON_kernel_PREFIX = kernel_
> CRON_kernel_EXECUTABLE = $(CRON_MODULES)/kernel
> CRON_kernel_PERIOD = 1h
> CRON_kernel_MODE = periodic
> CRON_kernel_RECONFIG = false
> CRON_kernel_KILL = true
> CRON_kernel_ARGS =
>
> $MODULES/kernel:
> #!/usr/bin/env perl
>
> use strict;
> use FileHandle;
>
> my $fh = new FileHandle "/proc/version";
> chomp(my $kernel_version_string = <$fh>);
> my ($kernel_version) = $kernel_version_string =~ /Linux version (\S+)/;
> my $bigmem = $kernel_version =~ /bigmem/;
> my $hugemem = $kernel_version =~ /hugemem/;
>
> print "version_string = \"$kernel_version_string\"\n";
> print "version = \"$kernel_version\"\n";
> print "bigmem = " . ($bigmem ? "TRUE" : "FALSE" ) . "\n";
> print "hugemem = " . ($hugemem ? "TRUE" : "FALSE" ) . "\n";
>
> --
> <<< It's the question that drives us. >>>
> /`-_ Nicholas R. LeRoy The Condor Project
> { }/ http://www.cs.wisc.edu/~nleroy http://www.cs.wisc.edu/condor
> \ / nleroy@xxxxxxxxxxx The University of Wisconsin
> |_*_| 608-265-5761 Department of Computer Sciences
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/
>
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/