[Moin-user] CPU prcessing

R.Bauer rb.proj at gmail.com
Mon Feb 2 11:47:57 EST 2009


waqas ahmad schrieb:
> Hi, 
> I am running moinmoin with Apache2.2.8(mod_sspi.so), python26, moinmoin180. I have some pages in which i used many diagrams. when i want to access these kind of pages then my cpu uses nearly 100% processing. Therefore i was asking that if 20 users will access these kind of pages at a time then my maschine, where i installed this application, goes down.
>  
> There is any solution that i can decrease the cpu capacity because i am using also other application on that same maschine(computer). 
>  

Hmm, you can use the Image macro from the
http://hg.moinmo.in/moin/1.7-extensions/ if you want to increase the
speed. That is also used by arnica.
http://moinmo.in/ReimarBauer/HelpOnArnica

# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - Image rendering support class and a simple macro using it.

    Features:
    * rendering (and caching) of thumbnails/webnails/originals
    * gives ready-to-use image urls
    * auto-rotation based on EXIF information
    * determines creation time from EXIF or file system
    * easy access to some EXIF data (cached)

    Requires PIL and ExifTags libs.

    @copyright: 2008 MoinMoin:ThomasWaldmann,
                2008 MoinMoin:ReimarBauer
    @license: GNU GPL, see COPYING for details.
"""

The cache files will be created with the first access to the page.


macro definition:

def macro_Image(macro, itemname=wikiutil.required_arg(unicode),
width=9999, height=9999, alt=u'', description=u''):
    """ Embed an Image into a wiki page.

        We use a very high default value for width and height, because
PIL will calculate the
        image dimensions to not be larger than (width, height) and also
not be larger than
        the original image. Thus, by not giving width or height, you'll
get the original image,
        and if you specify width or height you will get an image of that
width or that height.

        <<Image(PageName/attachname,width=100,alt="sample image")>>
    """


I have some arnica pages with a few hunderd images and you don't
recognize a delay.

cheers
Reimar




>  
> Best Regards, 
>  
> Waqas Ahmad
>  > Date: Mon, 2 Feb 2009 11:29:12 +0100> From: rb.proj at gmail.com> To: waqas805 at hotmail.com> CC: moin-user at lists.sourceforge.net> Subject: Re: moinmoin for other branches> > waqas ahmad schrieb:> > > > Hi, > > > > I was running wiki on intranet and it is working very good. Now i want to run this moinmoin wiki for my other branches also. I have some questions regarding moinmoin.> > > > > > 1. I saw on my server, whenever i click on some pages with pictures on client side, always server has to work a lot, because of python. I want to ask when minimum 20 users want to use this moinmoin wiki at a time, then what is minimum requirment of server? Because i have little bit fear that when 20 users will use at a time moinmoin pages, then may be server goes down(even server is very powerful). Can you please tell me technical background, what should i do before expanding the circle of moinmoin.2. Other thing is , i want to setup one more moinmoin wiki for my other branches(security rea
son) on differnt server. In my main branch, i will use my current moinmoin wiki, and for other branches i will setup new one. because other branches will only read the pages, they will not allow to write on wiki pages. I want to ask there is any synchornization, that i send pages with acl to 2nd wiki. > > If you have any better idea then you can also share with me.?> > > What is your deployemnt / adaptor? Is it cgi? Which server?> That behaviour is normal for cgi. Use mod_wsgi or fcgid to get fastest> performace.> > > > cheers> Reimar> > > > > 3. moinmoin wiki can be converted into other wikis without having big problems?> > > > I shall be thankful to you for help.> > > > Best Regards, > > > > Waqas Ahmad > > _________________________________________________________________> > News, entertainment and everything you care about at Live.com. Get it now!> > http://www.live.com/getstarted.aspx> > > > > > ------------------------------------------------------------------------> > >
 > ------------------------------------------------------------------------------> > This SF.net email is sponsored by:> > SourcForge Community> > SourceForge wants to tell your story.> > http://p.sf.net/sfu/sf-spreadtheword> > > > > > ------------------------------------------------------------------------> > > > _______________________________________________> > Moin-user mailing list> > Moin-user at lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/moin-user> 
> _________________________________________________________________
> Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
> 
> http://www.microsoft.com/windows/windowslive/photos.aspx
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user





More information about the Moin-user mailing list