LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-19-2011, 01:27 AM   #1
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Rep: Reputation: 1
rsync ram


Hi
I have another problem 4 node cluster (RHCS on Centos 5.6) 2xapache 2xlighttpd using gfs2 partition mounted in /var/www/ as DocumentRoot.When I start rsync
/var/www/ for backup with this parameters

#rsync -avr --delete /var/www/ /mnt/gfs/

the memory will rise on the node to 6000MB, after restart rgmanager it goes down to 1000MB

Do you know where could be a problem ?

THanks
 
Old 07-19-2011, 05:59 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Have you done any tuning of GFS2? ('man gfs2_tool')
 
Old 07-20-2011, 03:07 AM   #3
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Original Poster
Rep: Reputation: 1
I have read about that, but I have no idea wich parameter could help with this kind of problem...
 
Old 07-20-2011, 08:05 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try gettune to list all the available params, you may also want to increase num_glockd in the mount options to ease memory pressure. Are you also mounting without access times ?
 
Old 07-21-2011, 02:00 AM   #5
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Original Poster
Rep: Reputation: 1
Hi

I am mounting gfs2 partition without any parameter and here are my gettune parameter

[root@weba duben]# gfs2_tool gettune /var/www
new_files_directio = 0
new_files_jdata = 0
quota_scale = 1.0000 (1, 1)
logd_secs = 1
recoverd_secs = 60
statfs_quantum = 30
stall_secs = 600
quota_cache_secs = 300
quota_simul_sync = 64
statfs_slow = 0
complain_secs = 10
max_readahead = 262144
quota_quantum = 60
quota_warn_period = 10
jindex_refresh_secs = 60
log_flush_secs = 60
incore_log_blocks = 1024

Thanks
 
Old 07-21-2011, 10:37 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Maybe the first thing to try would be to change the mount options, num_glockd can be between 1 and 16 but defaults to 1. When the rsync is running the system is probably allocating a lot of locks, by increasing the number of lock daemons it should perform better.

Try adding 'num_glockd=8' to the mount options and see how it goes, you can adjust up or down as required.

And unless you really need it, turn off access times with the 'noatime' option.

Last edited by kbp; 07-21-2011 at 10:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rsync execution issue with crontab - Have given full path to rsync too!! Prabagaran Linux - Server 6 04-15-2011 01:39 AM
[SOLVED] rsync fails in cron - ssh key prob for rsync? jonathansfl Linux - Server 6 12-09-2010 09:48 AM
Dead Laptop RAM: How to backup files with Rsync? fragged Linux - Newbie 5 08-23-2009 01:43 PM
Is it possible to get rsync to use less ram? Its using over 500M now. abefroman Linux - Software 1 12-23-2007 05:19 PM
Rsync taking up all Ram, 800MB! humbletech99 Linux - Software 6 02-27-2007 03:19 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration