Re: Estimating OSD memory requirements (was Re: stuff for v0.56.4)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, March 11, 2013 at 8:10 AM, Bryan K. Wright wrote:

> sage@xxxxxxxxxxx said:
> > On Thu, 7 Mar 2013, Bryan K. Wright wrote:
> > 
> > sage@xxxxxxxxxxx said:
> > > - pg log trimming (probably a conservative subset) to avoid memory bloat 
> > 
> > 
> > 
> > Anything that reduces the size of OSD processes would be appreciated.
> > You can probably do this with just
> > log max recent = 1000
> > By default it's keeping 100k lines of logs in memory, which can eat a lot of
> > ram (but is great when debugging issues).
> 
> 
> 
> Thanks for the tip about "log max recent". I've made this 
> change, but it doesn't seem to significantly reduce the size of the 
> OSD processes.
> 
> In general, are there some rules of thumb for estimated the
> memory requirements for OSDs? I see processes blow up to 8gb of 
> resident memory sometimes. If I need to allow for that much memory
> per OSD process, I may have to just walk away from ceph.
> 
> Does the memory usage scale with the size of the disks?
> I've been trying to run 12 OSDs with 12 2TB disks on a single box.
> Would I be better off (memory-usage-wise) if I RAIDed the disks
> together and used a single OSD process?
> 


Memory use depends on several things, but the most important are how many PGs the daemon is hosting, and whether it's undergoing recovery of some kind. (Absolute disk size is not involved.) If you're getting up to 8GB per, it sounds as if you may have a bit too many PGs.
You could try RAIDing some of your drives together instead, yes -- memory & CPU utilization is one of the trade offs there, balanced against larger discrete failure units and the loss of space or reliability (depending on the RAID chosen).
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com



--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux