WHM too slow with more then 700-1000 accounts !!!

B

bdraco

Guest
rsync -av rsync://rsync.cpanel.net/scripts /scripts

Please let me know if its any faster after running the above command.
 
B

bdraco

Guest
rsync -av rsync://rsync.cpanel.net/scripts /scripts

Please run the above command
then run

time /scripts/updateuserdomains
time /scripts/updateuserdomains2

diff -u /etc/userdomains /etc/userdomains2
diff -u /etc/trueuserdomains /etc/trueuserdomains2

then paste everything back here so I can make sure its correct
 

vovikIII

Member
Sep 9, 2002
22
0
151
It is s bit better now:
agter I started killacct I saw follow (in listed order):
1. pwck - about 15-20 seconds - you can't do nothing with it
2. updateuserdomain - too long - abotu 2 minute s- please - optimize it
3. convertemail - about 5 sec
4. ftpupdate - about 5 sec (great job, guys ! before it worked much slower !)
5. mkvhostpassword - works faster too !

And I have not see the updatedomainip process at all .

:)

Thank You
 

vovikIII

Member
Sep 9, 2002
22
0
151
Before 2nd rsync:

time /scripts/updateuserdomains

real 0m49.968s
user 0m21.830s
sys 0m11.220s

---------------------------------------
After 2nd rsync:


time /scripts/updateuserdomains


real 0m18.040s
user 0m11.250s
sys 0m1.130s

time /scripts/updateuserdomains2

real 0m10.092s
user 0m7.820s
sys 0m0.730s

diifs are too long. Please, provide your e-mail address to send diff results to.

Thank You
 
B

bdraco

Guest
Can you try this as well

cat /etc/userdomains | sort & /root/userdomains
cat /etc/userdomains2 | sort & /root/userdomains2
cat /etc/trueuserdomains | sort & /root/trueuserdomains
cat /etc/trueuserdomains2 | sort & /root/trueuserdomains2
diff -u /root/userdomains /root/userdomains2
diff -u /root/trueuserdomains /root/trueuserdomains2
 

vovikIII

Member
Sep 9, 2002
22
0
151
On some servers IDE (UDMA100 with 40Mb/sec transfer by hdparm -t /dev/hdX), on some SCSI.

But updateuserdomains works too slow on both IDE & SCSI systems.

And it runs much slower from killacct script, then when I start it manually.

e-mail with diffs have been sent to you.

Thank You
 
B

bdraco

Guest
Please check the new updateuserdomains and convertemails script to see if they are any faster for you.
 
B

bdraco

Guest
[quote:54dbdb41bd][i:54dbdb41bd]Originally posted by vovikIII[/i:54dbdb41bd]

time /scripts/updateuserdomains

real 1m43.230s
user 0m0.570s
sys 0m5.960s

[/quote:54dbdb41bd]

I'd like to get access to your machine to figure out why it is so slow. I cannot optimize it anymore. Please contact me at [email protected]
 
B

bdraco

Guest
Please check to make sure dma and 32bit access are enabled on your disk

/sbin/hdparm /dev/hda

should tell you



Also, assuming you are not using an nvidia chipset, running the below should speed up things
/sbin/hdparm -q -u1 -c1 -q -A1 -q -m16 -q -d1 /dev/hda
 

vovikIII

Member
Sep 9, 2002
22
0
151
we are using /scripts/hdparamify run on startup. The IDE disk is not a problem. The same updateuserdomains slowness present on the SCSI systems as well.

hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
I/O support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9732/255/63, sectors = 156355584, start = 0
busstate = 1 (on)
 

vovikIII

Member
Sep 9, 2002
22
0
151
Nick,

I'm really HAPPY now with build 37 (it seems you have removed the updauserdomains call, or it become so fast and I don't see it at all on the top screen).

Thank You A LOT !

Btw - any hints about the web sites logs reset every month (at 1st) since 1/Aug ? (Before 1/Aug logs were not reset). After each 1st since 1/Aug we are getting some customers complaints about the lost logs :(
 

gidechoi

Member
Mar 16, 2002
23
0
301
The same ploblem...

I have just 300 account.
2 Piii900 CPU.

Site is fast, but ftp, ping is low.
How can fix it?

My htpd.conf size is 223000
 

vovikIII

Member
Sep 9, 2002
22
0
151
How many IP address does your server have ?

The bandmin accounting is very slow with hundreds of IP addresses & big traffic activities.