From: Dave Spano <dspano@optogenics.com>
To: "Sébastien Han" <han.sebastien@gmail.com>
Cc: ceph-devel <ceph-devel@vger.kernel.org>,
Samuel Just <sam.just@inktank.com>
Subject: Re: OSD memory leaks?
Date: Wed, 9 Jan 2013 18:03:00 -0500 (EST) [thread overview]
Message-ID: <18367055.168.1357772580252.JavaMail.dspano@it1> (raw)
In-Reply-To: <CAOLwVUmrCXk2qRkBd3G3rB85+=K_y0rc9y6QWEGqKjdwJyUTww@mail.gmail.com>
Thank you. I appreciate it!
Dave Spano
Optogenics
Systems Administrator
----- Original Message -----
From: "Sébastien Han" <han.sebastien@gmail.com>
To: "Dave Spano" <dspano@optogenics.com>
Cc: "ceph-devel" <ceph-devel@vger.kernel.org>, "Samuel Just" <sam.just@inktank.com>
Sent: Wednesday, January 9, 2013 5:12:12 PM
Subject: Re: OSD memory leaks?
Dave, I share you my little script for now if you want it:
#!/bin/bash
for i in $(ps aux | grep [c]eph-osd | awk '{print $4}')
do
MEM_INTEGER=$(echo $i | cut -d '.' -f1)
OSD=$(ps aux | grep [c]eph-osd | grep "$i " | awk '{print $13}')
if [[ $MEM_INTEGER -ge 25 ]];then
service ceph restart osd.$OSD >> /dev/null
if [ $? -eq 0 ]; then
logger -t ceph-memory-usage "The OSD number $OSD has been restarted
since it was using $i % of the memory"
else
logger -t ceph-memory-usage "ERROR while
restarting the OSD daemon"
fi
else
logger -t ceph-memory-usage "The OSD number $OSD is
only using $i % of the memory, doing nothing"
fi
logger -t ceph-memory-usage "Waiting 60 seconds before testing the next OSD..."
sleep 60
done
logger -t ceph-memory-usage "Ceph state after memory check operation
is: $(ceph health)"
Crons run with 10 min interval everyday for each storage node ;-).
Waiting for some Inktank guys now :-).
--
Regards,
Sébastien Han.
On Wed, Jan 9, 2013 at 10:42 PM, Dave Spano <dspano@optogenics.com> wrote:
> That's very good to know. I'll be restarting ceph-osd right now! Thanks for the heads up!
>
> Dave Spano
> Optogenics
> Systems Administrator
>
>
>
> ----- Original Message -----
>
> From: "Sébastien Han" <han.sebastien@gmail.com>
> To: "Dave Spano" <dspano@optogenics.com>
> Cc: "ceph-devel" <ceph-devel@vger.kernel.org>, "Samuel Just" <sam.just@inktank.com>
> Sent: Wednesday, January 9, 2013 11:35:13 AM
> Subject: Re: OSD memory leaks?
>
> If you wait too long, the system will trigger OOM killer :D, I already
> experienced that unfortunately...
>
> Sam?
>
> On Wed, Jan 9, 2013 at 5:10 PM, Dave Spano <dspano@optogenics.com> wrote:
>> OOM killer
>
>
>
> --
> Regards,
> Sébastien Han.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-01-09 23:03 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4172429.450.1357580400977.JavaMail.dspano@it1>
[not found] ` <10953797.470.1357585419142.JavaMail.dspano@it1>
2013-01-07 19:09 ` OSD memory leaks? Samuel Just
2013-01-09 15:20 ` Sébastien Han
2013-01-09 16:10 ` Dave Spano
2013-01-09 16:35 ` Sébastien Han
2013-01-09 18:09 ` Sylvain Munaut
2013-01-09 19:11 ` Sébastien Han
2013-01-10 21:44 ` Gregory Farnum
2013-01-11 14:57 ` Sébastien Han
2013-01-11 18:13 ` Gregory Farnum
2013-02-22 15:24 ` Sébastien Han
2013-02-23 0:44 ` Sage Weil
2013-02-24 23:10 ` Sébastien Han
2013-02-25 0:21 ` Sage Weil
2013-02-25 7:51 ` Wido den Hollander
2013-02-25 17:18 ` Sébastien Han
2013-03-01 15:51 ` Wido den Hollander
2013-03-01 18:07 ` Samuel Just
2013-03-01 19:10 ` Sage Weil
2013-03-04 17:11 ` Sébastien Han
[not found] ` <13183200.155.1363027427897.JavaMail.dspano@it1>
2013-03-11 22:23 ` Sébastien Han
2013-03-12 11:45 ` Vladislav Gorbunov
2013-03-12 12:12 ` Sébastien Han
2013-03-12 13:00 ` Vladislav Gorbunov
2013-03-12 13:43 ` Sébastien Han
2013-01-09 21:42 ` Dave Spano
2013-01-09 22:12 ` Sébastien Han
2013-01-09 23:03 ` Dave Spano [this message]
2013-01-10 21:43 ` Gregory Farnum
[not found] <7332688.5.1363110084349.JavaMail.dspano@it1>
2013-03-12 18:09 ` Dave Spano
2013-03-12 20:10 ` Sébastien Han
2013-03-12 20:20 ` Greg Farnum
2013-03-12 21:15 ` Dave Spano
2013-03-12 21:37 ` Greg Farnum
2013-03-13 13:12 ` Dave Spano
2013-03-13 19:59 ` Sébastien Han
2013-03-13 22:38 ` Dave Spano
2013-03-13 22:52 ` Greg Farnum
2013-03-14 0:05 ` Dave Spano
2013-03-14 0:15 ` Josh Durgin
2013-03-14 21:28 ` Dave Spano
2013-03-12 21:01 ` Bryan K. Wright
[not found] <CAOLwVUmJb0y39dg3zTv=c4iPSkjLBhG3L7L4=L7Ms96iP-SiWw@mail.gmail.com>
2012-12-17 8:28 ` Fwd: " Sébastien Han
2012-12-17 18:12 ` Samuel Just
[not found] ` <CAOLwVUn5VbH1P=0wu-Oxb1bSKpaQfC6uQ5012wvPc7bvz606JA@mail.gmail.com>
2012-12-17 22:41 ` Sébastien Han
2012-12-17 22:55 ` Samuel Just
2012-12-18 17:21 ` Sébastien Han
2012-12-19 16:37 ` Sébastien Han
2012-12-19 21:43 ` Samuel Just
2013-01-04 15:20 ` Sébastien Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18367055.168.1357772580252.JavaMail.dspano@it1 \
--to=dspano@optogenics.com \
--cc=ceph-devel@vger.kernel.org \
--cc=han.sebastien@gmail.com \
--cc=sam.just@inktank.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.