[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"> case "$1"
in</font>
<br><font size=2 face="sans-serif"> start)</font>
<br><font size=2 face="sans-serif"> echo -n
"Starting Lotus Domino server"</font>
<br><font size=2 face="sans-serif"> test -f
$INPUT_FILE || su - $NOTES_USER -c "touch $INPUT_FILE"</font>
<br><font size=2 face="sans-serif"> test -f
$INPUT_FILE && su - $NOTES_USER -c "rm $INPUT_FILE; touch
$INPUT_FILE"</font>
<br><font size=2 face="sans-serif"> su - $NOTES_USER
-c "$DOMINO_BIN <$INPUT_FILE >$OUTPUT_LOG 2>&1 &"
> > return=$rc_fa$</font>
<br>
<br><font size=2 face="sans-serif"> #Test-erweiterung
von Lucian: indexer auf nice 19 setzen</font>
<br><font size=2 face="sans-serif"> sleep 60</font>
<br><font size=2 face="sans-serif"> for i in
`ps -fu $NOTES_USER |grep update | awk '{print $2}'`; do</font>
<br><font size=2 face="sans-serif">
echo " ...renicing PID "$i</font>
<br><font size=2 face="sans-serif">
renice -19 $i</font>
<br><font size=2 face="sans-serif"> done</font>
<br><font size=2 face="sans-serif"> #Test-erweiterung
Ende</font>
<br><font size=2 face="sans-serif"> # Remember
status and be verbose</font>
<br><font size=2 face="sans-serif"> rc_status
-v</font>
<br><font size=2 face="sans-serif"> ;;
</font>
<br><font size=2 face="sans-serif"> stop)</font>
<br><font size=2 face="sans-serif"> echo \
"Shutting down Lotus Domino server"</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>"Jan Caspary" \
<caspary@abstract-factory.de></b></font> <p><font size=1 \
face="sans-serif">10.11.2003 14:09</font> <td><font size=1 face="Arial"> \
</font> <br><font size=1 face="sans-serif"> \
An: suse-domino@suse.de</font>
<br><font size=1 face="sans-serif"> Kopie:
</font>
<br><font size=1 face="sans-serif"> Thema:
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>
To: lgreis@mkv.de<br>
cc: suse-domino@suse.de<br>
Subject: 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 "nice -n-19 ... " into the line where "$DOMINOBIN"
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>
><br>
> Hi all,<br>
><br>
> we work with a rather large db (> 2GB) and experience degradations
in <br>
user<br>
> responiveness whenever the indexer is busy. When I manually renice
the <br>
process<br>
> to -19, user experience is much better. Unfortunately, we down the
<br>
domino<br>
> server each night for backup purposes (via rcdomino stop/start), and<br>
> thereafter, the process runs with ist standard priority.<br>
> Is there a way to start the indexer process with another priority,
<br>
making it<br>
> nice on startup?<br>
><br>
> 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