[prev in list] [next in list] [prev in thread] [next in thread] 

List:       suse-domino
Subject:    [suse-domino] Antwort: Re: [suse-domino] priority of indexer (SLES7, Domino 5.0.11)
From:       lgreis () mkv ! de
Date:       2003-11-10 15:02:26
[Download RAW message or body]

--=_alternative 0052984CC1256DDA_=
Content-Type: text/plain; charset="US-ASCII"

Hi Jan,

you were quite right. Since I am by no means a shell-scripter, I reused 
parts of the code that will stop a crashed Domino and attached it right 
after the server-start. works only for auto-start servers at the moments. 
but helps anyway...
Thanks to all responses!

Used code below...

---------snip-----------
      case "$1" in
    start)
        echo -n "Starting Lotus Domino server"
        test -f $INPUT_FILE || su - $NOTES_USER -c "touch $INPUT_FILE"
        test -f $INPUT_FILE && su - $NOTES_USER -c "rm $INPUT_FILE; touch 
$INPUT_FILE"
        su - $NOTES_USER -c "$DOMINO_BIN <$INPUT_FILE >$OUTPUT_LOG 2>&1 &" 
> > return=$rc_fa$

        #Test-erweiterung von Lucian: indexer auf nice 19 setzen
        sleep 60
        for i in `ps -fu $NOTES_USER |grep update | awk '{print $2}'`; do
                echo " ...renicing PID "$i
                renice -19 $i
        done
        #Test-erweiterung Ende
        # Remember status and be verbose
        rc_status -v
        ;; 
    stop)
        echo  "Shutting down Lotus Domino server"
---------snip------------




"Jan Caspary" <caspary@abstract-factory.de>
10.11.2003 14:09
 
        An:     suse-domino@suse.de
        Kopie: 
        Thema:  Re: [suse-domino] priority of indexer (SLES7, Domino 
5.0.11)


Hi,

I dont think this would work because all processes of the domino server 
would have nice-level -19. 

A better solution might be a ps | grep for the indexer process after the 
domino is started in the file /etc/init.d/domino to get the process-id. 
Now you can change the nice-level.

Regards
Jan




BLeonhardt@analytek.de
10.11.2003 12:31

 
        To:     lgreis@mkv.de
        cc:     suse-domino@suse.de
        Subject:        Re: [suse-domino] priority of indexer (SLES7, 
Domino 5.0.11)






Hi again,

do following :

1) chmod 4755 /usr/bin/nice (will be started as root)
2) put "nice -n-19 ... " into the line where "$DOMINOBIN" will be started

cu
bruno



lgreis@mkv.de schrieb am 10.11.2003 11:47:10:

> 
> Hi all,
> 
> we work with a rather large db (> 2GB) and experience degradations in 
user
> responiveness whenever the indexer is busy. When I manually renice the 
process
> to -19, user experience is much better. Unfortunately, we down the 
domino
> server each night for backup purposes (via rcdomino stop/start), and
> thereafter, the process runs with ist standard priority.
> Is there a way to start the indexer process with another priority, 
making it
> nice on startup?
> 
> Regards, Lucian Greis


-- 
To unsubscribe, e-mail: suse-domino-unsubscribe@suse.com
For additional commands, e-mail: suse-domino-help@suse.com






-- 
To unsubscribe, e-mail: suse-domino-unsubscribe@suse.com
For additional commands, e-mail: suse-domino-help@suse.com



--=_alternative 0052984CC1256DDA_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi Jan,</font>
<br>
<br><font size=2 face="sans-serif">you were quite right. Since I am by
no means a shell-scripter, I reused parts of the code that will stop a
crashed Domino and attached it right after the server-start. works only
for auto-start servers at the moments. but helps anyway...</font>
<br><font size=2 face="sans-serif">Thanks to all responses!</font>
<br>
<br><font size=2 face="sans-serif">Used code below...</font>
<br>
<br><font size=2 face="sans-serif">---------snip-----------</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; case &quot;$1&quot;
in</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; start)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; echo -n
&quot;Starting Lotus Domino server&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; test -f
$INPUT_FILE || su - $NOTES_USER -c &quot;touch $INPUT_FILE&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; test -f
$INPUT_FILE &amp;&amp; su - $NOTES_USER -c &quot;rm $INPUT_FILE; touch
$INPUT_FILE&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; su - $NOTES_USER
-c &quot;$DOMINO_BIN &lt;$INPUT_FILE &gt;$OUTPUT_LOG 2&gt;&amp;1 &amp;&quot;
> > return=$rc_fa$</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; #Test-erweiterung
von Lucian: indexer auf nice 19 setzen</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; sleep 60</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; for i in
`ps -fu $NOTES_USER |grep update | awk '{print $2}'`; do</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; echo &quot; ...renicing PID &quot;$i</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; renice -19 $i</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; done</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; #Test-erweiterung
Ende</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; # Remember
status and be verbose</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; rc_status
-v</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ;; &nbsp;
</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; stop)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; echo \
&nbsp;&quot;Shutting down Lotus Domino server&quot;</font>
<br><font size=2 face="sans-serif">---------snip------------</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Jan Caspary&quot; \
&lt;caspary@abstract-factory.de&gt;</b></font> <p><font size=1 \
face="sans-serif">10.11.2003 14:09</font> <td><font size=1 face="Arial">&nbsp; &nbsp; \
&nbsp; &nbsp; </font> <br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; \
An: &nbsp; &nbsp; &nbsp; &nbsp;suse-domino@suse.de</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Kopie:
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Thema:
&nbsp; &nbsp; &nbsp; &nbsp;Re: [suse-domino] priority of indexer
(SLES7, Domino 5.0.11)</font></table>
<br>
<br>
<br><font size=2><tt>Hi,<br>
<br>
I dont think this would work because all processes of the domino server
<br>
would have nice-level -19. <br>
<br>
A better solution might be a ps | grep for the indexer process after the
<br>
domino is started in the file /etc/init.d/domino to get the process-id.
<br>
Now you can change the nice-level.<br>
<br>
Regards<br>
Jan<br>
<br>
<br>
<br>
<br>
BLeonhardt@analytek.de<br>
10.11.2003 12:31<br>
<br>
 <br>
 &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; lgreis@mkv.de<br>
 &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; suse-domino@suse.de<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [suse-domino]
priority of indexer (SLES7, Domino 5.0.11)<br>
<br>
<br>
<br>
<br>
<br>
<br>
Hi again,<br>
<br>
do following :<br>
<br>
1) chmod 4755 /usr/bin/nice (will be started as root)<br>
2) put &quot;nice -n-19 ... &quot; into the line where &quot;$DOMINOBIN&quot;
will be started<br>
<br>
cu<br>
bruno<br>
<br>
<br>
<br>
lgreis@mkv.de schrieb am 10.11.2003 11:47:10:<br>
<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; we work with a rather large db (&gt; 2GB) and experience degradations
in <br>
user<br>
&gt; responiveness whenever the indexer is busy. When I manually renice
the <br>
process<br>
&gt; to -19, user experience is much better. Unfortunately, we down the
<br>
domino<br>
&gt; server each night for backup purposes (via rcdomino stop/start), and<br>
&gt; thereafter, the process runs with ist standard priority.<br>
&gt; Is there a way to start the indexer process with another priority,
<br>
making it<br>
&gt; nice on startup?<br>
&gt;<br>
&gt; Regards, Lucian Greis<br>
<br>
<br>
-- <br>
To unsubscribe, e-mail: suse-domino-unsubscribe@suse.com<br>
For additional commands, e-mail: suse-domino-help@suse.com<br>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
To unsubscribe, e-mail: suse-domino-unsubscribe@suse.com<br>
For additional commands, e-mail: suse-domino-help@suse.com<br>
<br>
</tt></font>
<br>
--=_alternative 0052984CC1256DDA_=--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic