Date: Tue, 15 Oct 2002 16:03:29 +0100
Reply-To: Peter Crawford <peter.crawford@DB.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Crawford <peter.crawford@DB.COM>
Subject: Re: SAS is slow? (123 mb/sec on pc???)
Content-type: text/plain; charset=iso-8859-1
Hi Ian
thanks for the response..... I particularly like dsoptions=" "
What is now even more disappointing is that
option dsoptions=noprofile ;
failed to achieve what seemed the standard NOxxxxxxx
(negative boolean) option.
............... note the cpu times
545 options dsoptions=profile nocenter ls=120 ;
546 data _null_;
547 do x = 1 to 1e4;
548 y = x * 2;
549 z = x * 3;
550 end;
551 run;
NOTE: DATA statement used:
real time 0.38 seconds
cpu time 0.31 seconds
552 options dsoptions= crazy nocenter;
553 data _null_;
NOTE: The DATA step option crazy is unknown.
554 do x = 1 to 1e4;
554 do x = 1 to 1e4;
555 y = x * 2;
556 z = x * 3;
557 end;
558 run;
NOTE: DATA statement used:
real time 0.00 seconds
cpu time 0.00 seconds
559 options dsoptions= noprofile nocenter;
560 data _null_;
NOTE: The DATA step option noprofile is unknown.
561 do x = 1 to 1e4;
562 y = x * 2;
563 z = x * 3;
564 end;
565 run;
NOTE: DATA statement used:
real time 0.37 seconds
cpu time 0.31 seconds
....................
and confirming what is hinted at by the cpu times, the
listing window shows the profile info is still created for
the step in log lines 560 - 565 ( with dsoptions=noprofile)
But "crazy" works !
Fortunately,
option dsoptions = " " ;
achieves its clearly stated objective.
Kind Regards
Peter Crawford
Datum: 15/10/2002 14:29
An: Peter Crawford/Zentrale/DeuBaExt@Zentrale
SAS-L@LISTSERV.UGA.EDU
Betreff: RE: SAS is slow? (123 mb/sec on pc???)
Nachrichtentext:
Peter,
I think NORMAL was just an accident. CRAZY works just as well. Or for more
humor in the log use
118 options dsoptions=-profile ;
-------
13
ERROR 13-12: Unrecognized SAS option name, PROFILE.
If you wish a quiet way to turn off the profiling option use
options dsoptions=" " ;
IanWhitlock@westat.com
-----Original Message-----
From: Peter Crawford [mailto:peter.crawford@DB.COM]
Sent: Tuesday, October 15, 2002 7:28 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: SAS is slow? (123 mb/sec on pc???)
Like "Mike Rhoads <RHOADSM1@WESTAT.COM>" says about
options dsoptions=profile nocenter;
"That certainly IS interesting -- haven't heard of that one before"
This seems to be a global way of setting data statement
options like /debug
try
options dsoptions=debug ;
data _null_;
do x = 1 to 1e4;
y = x * 2;
z = x * 3;
end;
run;
Interestingly, it seems dificult to switch off dsoptions=profile
option dsoptions=noprofile;
had no effect except
NOTE: The DATA step option noprofile is unknown.
Fortunately,
option dsoptions=normal;
had the desired effect , even though
NOTE: The DATA step option normal is unknown.
but the cpu time returned to "normal"
I begin to wonder about other datastep options
1 DATA /?;RUN;
-
22
76
ERROR 22-322: Syntax error, expecting one of the following: BUFFERED,
NOPASSTHRU, PASSTHRU, PGM, UNBUFFERED, VIEW.
ERROR 76-322: Syntax error, statement will be ignored.
NOTE: The SAS System stopped processing this step because of errors.
So that indicates only certain dsoptions are expected.
Notice that as well as profile, the "expecting" list
does not include DEBUG
Equally NOdebug is accepted but not documented.
Unfortunately my theories get confounded again when I
try profile as a datastep option in a data statement
12 data /profile;run;
-------
22
76
ERROR 22-322: Syntax error, expecting one of the follo......
So perhaps option dsoptions = xxxxxxxx is not a substitute for
data / xxxxxxxxx ;
HTH
Peter Crawford
Datum: 14/10/2002 21:05
An: SAS-L@LISTSERV.UGA.EDU
Antwort an: Mike Rhoads <RHOADSM1@WESTAT.COM>
Betreff: Re: SAS is slow? (123 mb/sec on pc???)
Nachrichtentext:
That certainly IS interesting -- haven't heard of that one before, but I see
it is mentioned if you run PROC OPTIONS INTERNAL. (Otherwise undocumented
as far as I can tell)
Mike Rhoads
Westat
RhoadsM1@Westat.com
-----Original Message-----
From: Jack Hamilton [mailto:JackHamilton@FIRSTHEALTH.COM]
Sent: Monday, October 14, 2002 12:00 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: SAS is slow? (123 mb/sec on pc???)
I don't know or use SCL, so I can't compare with the SCL profile, but
you can try
options dsoptions=profile;
which produces, for the following input, in SAS 8.2 under Windows NT:
-----
options dsoptions=profile nocenter;
data _null_;
do x = 1 to 1e6;
y = x * 2;
z = x * 3;
end;
run;
-----
this output:
-----
DATA Step Profile Statistics
CPU
Count Usage CPU % Phase
-------- -------- ------ --------------------
1 0.000 0.00 Initialization
1 0.000 0.00 Compilation
1 0.000 0.00 Resolution
1 0.000 0.00 Execution / Init
1 8.115 100.00 Execution
1 0.000 0.00 Execution / Term
-------- -------- ------ --------------------
Total CPU Time == 8.12
DATA Step Statement Profile Statistics
CPU Log
Count Usage CPU % Line# Source
-------- -------- ------ ------
-----------------------------------------
13 data _null_;
1 0.000 0.00 14 do x = 1 to 1e6;
1000000 2.503 30.84 15 y = x * 2;
1000000 2.747 33.85 16 z = x * 3;
1000000 2.865 35.30 17 end;
1 0.000 0.00 18 run;
-------- -------- ------ ------
-----------------------------------------
-----
--
JackHamilton@FirstHealth.com
Manager, Technical Development
METRICS Department, First Health
West Sacramento, California USA
>>> "Mauro Morandin" <second_name@LIBERO.IT> 10/13/2002 2:37 PM >>>
Hi Sigurd,
thanks for your help, I will surely post to this newsgroup well
defined
programming problems (not entire data models) in which I find that SAS
is slower than required.
This week I'm doing some profiling to see where we loose too much time
and will then look for help from you and the other SAS wizards here on
the newsgroup.
I was wondering if in SAS V8.2 or in SAS V9.0 there is a data step
profiler like the SCL Profiler????
I appreciate your help.
Ciao.
Mauro.
Sigurd Hermansen wrote:
> As for Oracle RAW devices, not all Oracle programmers recommend them.
See:
>
> http://www.geocrawler.com/archives/3/279/2001/1/0/5049827/
>
> Before considering specialized hardware and file access systems, show
us
> examples of the type of data warehousing data that are bogging down
SAS
> solutions. It should not take long to write a sAS program that will
generate
> adequate test data. Generated data do not have to be trivial. Some of
the
> examples that I have seen on SAS-L generate gigabytes of data. I
would bet
> that a combination of data reshaping and better SAS methods will put
SAS
> solutions at least on par with Oracle and SQLServer. Don't worry
about
> overwhelming us. I have witnessed more more than a few amazingly
efficient
> solutions to problems involving complex and voluminous data.
> Sig
>
> -----Original Message-----
> From: David L. Cassell [mailto:Cassell.David@EPAMAIL.EPA.GOV]
> Sent: Sunday, October 06, 2002 5:32 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: SAS is slow? (123 mb/sec on pc???)
>
>
> Mauro Morandin <second_name@LIBERO.IT> replied (to me):
>
>>Have you tried Oracle on RAW DEVICES?
>>Have you tried MS SQL on RAID0 filesystems with large STRIPING BLOCK
>
> SIZE.
>
>>Probably you were using your standard Oracle installation (which is
>>optimized for transaction processing) to do data warehousing (which
is
>>large sequential read/write). Ask your DBA.
>
>
> Now this is valuable. (Not that your previous writings are not!)
> Thanks for the specifics. Have you tried either of these on a
system
> which is also optimized for SAS? (Other than the
less-than-cooperative
> AIX...) If you have any substantive benchmarks based on these,
> whether they make SAS look good or bad, they would be welcome in
this
> forum.
>
> David
> --
> David Cassell, CSC
> Cassell.David@epa.gov
> Senior computing specialist
> mathematical statistician
--
--
mauro morandin
SAS consultant
red hat certified engineer
mauro.morandin-NOSPAM-@ieee.org
--
matrix srl via postioma di salvarosa 25b tel +39-423-724620
31033 castelfranco veneto (tv) fax +39-423-770798
http://www.matrix-online.it
info-TAKEAWAY-@matrix-online.it
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.