Re: Tuning FreBSD with specific applications

2005-06-03 Thread Vittorio De Martino
Alle 22:35, giovedì 02 giugno 2005, Mark Bucciarelli ha scritto:
 On Thu, Jun 02, 2005 at 10:17:13PM +0200, Vittorio De Martino wrote:
  How could I obtain those improvements? What could I do to speed those
  programs under freebsd?

 - Edit /etc/make.conf and set the processor and compiler optimizations.

 - Rebuild and install system (world and kernel)

 - Repost your results here. ;)

 The BSD handbook has good docs on the last step of this process.  Coming
 from Gentoo, you probably have a good idea what to do in the first step.

 There is an example make.conf somewhere on you system you can look at
 for other things to set.

 If you want to get really detailed, look at the Makefile for R in it's
 ports directory.  There may be some notes as to configure options and
 performance.

 FWIU, every port can have it's own set of configure options, and there
 is a way to put conditionals inside make.conf; for example, if in this
 ports directory, set this option.  I haven't used that yet, but if you
 search the archives here you will find an example.

 BTW, don't mess around with the new scheduler.  Just use the old BSD
 one.  I did some testing (recompiled gcc) and the old one was faster on
 a dual processor system.  From what someone told me on #freebsd, it
 works but is not optimized yet.

 Also, there are somethings you should do when testing speed.  You can
 google to find the references, here's the two items I remember:

 - use single user mode (no cron)
 - unplug network cable (no broadcast packets)


 Have fun!

Mark, after some other trial I decided in the end to concentrate on an 
application, R, trying to extract the best out of it in term of performance. 
That's why I deinstalled both in gentoo and in freebsd R, downloaded the 
2.0.1 source tarball from the r-project , compiled it in both OSs with the 
same configuration and options.
Now it happens that one test program working only in memory is executed in 
almost the same time in linux and in freebsd (a bit longer under win xp).
Another R test program working mainly in memory but producing a lot of output 
on the screen of the text console, works happily and fast in linux bash 
console whilst in freebsd csh console I see the R program to start happily 
and the output flowing rapidly on the screen, after some time it starts 
slowing down, then clogging. In the end it takes twice as much time to 
complete with respect to gentoo!
Could the difference be the bash in linux and csh in freebsd shell? 
Suggestions?
Vittorio  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tuning FreBSD with specific applications

2005-06-03 Thread Chad Leigh -- Shire.Net LLC


On Jun 3, 2005, at 1:02 PM, Vittorio De Martino wrote:



Could the difference be the bash in linux and csh in freebsd shell?
Suggestions?



FreeBSD has a bash port and there is also the tcsh and zsf and  
probably other shells.  Of course there is /bin/sh


Go ahead and switch shells (can do it with vipw if you want to  
eliminate an underlying shell running or at runtime by just executing  
the shell) and see if it makes a difference.


Chad

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tuning FreBSD with specific applications

2005-06-02 Thread Vizion
On Thursday 02 June 2005 13:17,  the author Vittorio De Martino contributed to 
the dialogue on-
 Tuning FreBSD with specific applications: 

First of all:
I DO NOT WANT TO START A FLAME!

On my laptop I've being using linux for some years now and landed at last
 to the gentoo distribution which I tuned for working with the statistical
 software R and the bunch of TeX programs such as latex, pdflatex, context
 and the likes (this absorb 95% of my activity on the linux box).
The main action I took with gentoo was to compile everything from scratch
 for my pc hardware, limiting the use of X  kde using all the above
 mentioned software prevailingly in a simple console.

Now in a partition of the same laptop I installed freebsd 5.4, set
softupdates, dma=1, and the same pieces of software as those I had installed
under linux using the ports, therefore, compiling everything for my pc
hardware, but, owing to my poor knowledge of Freebsd I'm experiencing some
problems.

In a nutshell I prepared the following test files:

1) a ConTeXt file full of long (useless) chapters and pictures to run with
texexec;
2) An R program which reads a long text file, puts the data in dataframes,
then loops to accomplish many repetitive mathematical calculations.

Now running the test  files in a console linux turns out to be roughly
 20-25% faster than freebsd. Particulary slow results the loop phase of the
 R source code that while running slows down and seems to clog in the end.
 The slowing down is also perceptible under linux but not at the same level.

Admiring the ordered and unitary layout of freebsd, the logical way of
setting it up, the richness of applications,  I would like to line the
freebsd installation up to the linux one, improving its performance at most,
not necessarily making it faster than linux.

How could I obtain those improvements? What could I do to speed those
 programs under freebsd?

here is a start:
www.lyris.com/products/listmanager/ fox_pro/tuning_freebsd.pdf -

David

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing May/June bound for Europe via Panama 
Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tuning FreBSD with specific applications

2005-06-02 Thread Mark Bucciarelli
On Thu, Jun 02, 2005 at 10:17:13PM +0200, Vittorio De Martino wrote:

 How could I obtain those improvements? What could I do to speed those
 programs under freebsd?

- Edit /etc/make.conf and set the processor and compiler optimizations.

- Rebuild and install system (world and kernel)

- Repost your results here. ;)

The BSD handbook has good docs on the last step of this process.  Coming
from Gentoo, you probably have a good idea what to do in the first step.

There is an example make.conf somewhere on you system you can look at
for other things to set.

If you want to get really detailed, look at the Makefile for R in it's
ports directory.  There may be some notes as to configure options and
performance.

FWIU, every port can have it's own set of configure options, and there
is a way to put conditionals inside make.conf; for example, if in this
ports directory, set this option.  I haven't used that yet, but if you
search the archives here you will find an example.

BTW, don't mess around with the new scheduler.  Just use the old BSD
one.  I did some testing (recompiled gcc) and the old one was faster on
a dual processor system.  From what someone told me on #freebsd, it
works but is not optimized yet.

Also, there are somethings you should do when testing speed.  You can
google to find the references, here's the two items I remember:

- use single user mode (no cron)
- unplug network cable (no broadcast packets)


Have fun!

m

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tuning FreBSD with specific applications

2005-06-02 Thread Lowell Gilbert
Vittorio De Martino [EMAIL PROTECTED] writes:

 How could I obtain those improvements? What could I do to speed those 
 programs 
 under freebsd?

Well, it can be hard to say, but in this case the kernel
shouldn't have much to do with the speed of the applications
(which will be pretty much CPU-bound for the programs you
specified), so it's unlikely that you need to tune FreeBSD
as opposed to your userland software.  You said that you
built the software by hand, the same way for both the Linux
and FreeBSD case; which compilers were used in each case?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]