[mapserver-dev] mapserver performance windows/linux

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Sep 17 14:47:47 EDT 2009


The placement code is relatively computationally intense, so we would need to do some profiling to see where
time is being spent. Would be useful to do on both platforms.

Steve

>>> On 9/17/2009 at 1:31 PM, in message
<DC6DBF0B831E92498DBB41DB6CDFA9BE0C5E7B06 at LEGP-EXCH-EMAIL.leg.fla.int>,
"JUDD.CHRISTOPHER" <JUDD.CHRISTOPHER at flsenate.gov> wrote:
> I forgot to add, I'm using ms4w 2.3.1 for the windows side.
> 
>  
> 
> -Chris
> 
>  
> 
> From: JUDD.CHRISTOPHER 
> Sent: Thursday, September 17, 2009 2:29 PM
> To: 'mapserver-dev at lists.osgeo.org'
> Subject: RE: [mapserver-dev] mapserver performance windows/linux
> 
>  
> 
> I think I have been able to narrow this issue down.  It appears that
> setting ANGLE AUTO impacts performance in linux.  On the exact same
> hardware I find this performance difference to be between 2x-3x slower
> for linux.  I have benchmarked this with Ubuntu Karmic, but I have also
> tried this on numerous versions of Debian-based distros.   Here is the
> detail of the package that I am using:
> http://ns2.canonical.com/ko/karmic/web/php5-mapscript 
> 
>  
> 
> Here is an example of this problem that can be deployed on windows and
> linux (with modifications to path names).
> http://c0342891.cdn.cloudfiles.rackspacecloud.com/test.tar 
> 
>  
> 
> Could this be a bug on the Linux side?
> 
>  
> 
> Thanks,
> Chris
> 
>  
> 
>  
> 
> LABEL
> 
>                                                                 TYPE
> truetype
> 
>  
> ANTIALIAS true
> 
>                                                                 FONT
> tahoma
> 
>                                                                 SIZE 6
> 
>                                                                 POSITION
> cc
> 
>                                                                 ANGLE
> AUTO
> 
>  
> OUTLINECOLOR 255 255 255
> 
>                                                                  COLOR 0
> 0 0
> 
>  
> MINDISTANCE 150
> 
>       END #end LABEL
> 
>  
> 
>  
> 
>  
> 
>  
> 
> From: JUDD.CHRISTOPHER 
> Sent: Wednesday, September 16, 2009 1:40 PM
> To: 'Dan Little'; mapserver-dev at lists.osgeo.org 
> Subject: RE: [mapserver-dev] mapserver performance windows/linux
> 
>  
> 
> Hi Dan,
> 
>  
> 
> Its executing the same code on Windows and Linux.   I assume that would
> be the same.
> 
>  
> 
> -Chris
> 
>  
> 
> From: Dan Little [mailto:danlittle at yahoo.com] 
> Sent: Wednesday, September 16, 2009 1:36 PM
> To: JUDD.CHRISTOPHER; mapserver-dev at lists.osgeo.org 
> Subject: Re: [mapserver-dev] mapserver performance windows/linux
> 
>  
> 
> Are you using the same label rendering engine on both platforms (GD
> True-type or AGG)?
> 
> 	 
> 
> 	From: JUDD.CHRISTOPHER <JUDD.CHRISTOPHER at flsenate.gov>
> 	To: mapserver-dev at lists.osgeo.org 
> 	Sent: Tuesday, September 15, 2009 11:04:59 AM
> 	Subject: [mapserver-dev] mapserver performance windows/linux
> 
> 	We have migrated our PHP Mapscript application from Windows to
> Linux.  Everything appeared to be working well until we starting drawing
> maps that did quite a bit of label rendering.  We found linux to be over
> twice as slow as Windows XP (running MS4W 2.3.1) on the same hardware
> when drawing labels.  If I turn the labeling off, the map performance
> exceeds that of windows.  I am using the same TrueType fonts on both
> systems.  
> 
> 	 
> 
> 	I have tried a number of different debian based distributions
> including: Debian Lenny, Xubuntu and Ubuntu Server with different
> versions of PHP Mapscript including 5.0.3, 5.2 and 5.4.  All exhibited
> the same results.  
> 
> 	 
> 
> 	Has anyone ran into this problem?  Is there something
> significantly different between the way Windows and Linux process fonts
> that could explain this?  
> 
> 	 
> 
> 	Thanks, 
> 
> 	Chris
> 
> 	 
> 
> 	 
> 
> 	 
> 
> 	 
> 
>  



More information about the mapserver-dev mailing list