Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-25-2012, 11:48 PM   #1
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
Copying 10 Million Thumbs, Fuck!

Here's an unexpected mind fuck... 10 million thumbs, 500 gigs, from one drive to another on the same server... estimated time, 4 fucking days!
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:09 AM   #2
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
would have been much quicker to zip them then transfer the zip.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:18 AM   #3
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
i tried that first, copied all in just a few hours, but then needed 9 days to extract.. so i deleted the gzip and started over with copy
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:18 AM   #4
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,061
Quote:
Originally Posted by borked View Post
would have been much quicker to zip them then transfer the zip.
Yep - You can set with no compression.
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:27 AM   #5
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
my second attempt has been running 13 hours now.. no compression sounds interesting, but not sure if the performance gain will be worth starting over now.. with compression was 9 days to extract.. without, maybe half? which would be the same as copy then...
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:31 AM   #6
FlowerKid
Confirmed User
 
Join Date: Sep 2005
Location: Zurich
Posts: 1,045
WTF, one of your thumbs is as big as 50MB? Normally a thumb is below 10kB.
__________________
FlowerKid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:35 AM   #7
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
160px × 120px, average 15 KB each.. in this case it's not the size, it's the number.
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 12:40 AM   #8
FlowerKid
Confirmed User
 
Join Date: Sep 2005
Location: Zurich
Posts: 1,045
My calculation: 500GB/10M=50MB

Last edited by FlowerKid; 02-26-2012 at 12:42 AM..
FlowerKid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 01:11 AM   #9
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,061
Quote:
Originally Posted by FlowerKid View Post
My calculation: 500GB/10M=50MB
That would be 500TBs - I think.....
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 01:15 AM   #10
Socks
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto
Posts: 8,475
I'm sure you're in unix, but on the off chance, I'll leave this here

http://codesector.com/teracopy
Socks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 01:23 AM   #11
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,098
Quote:
Originally Posted by flowerkid View Post
my calculation: 500gb/10m=50mb
(500*10^9)/(10*10^6)=(500*10^3)/(10)=(50*10^3)/(1)=50kb
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 02:34 AM   #12
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
i'm guesstimating... roughly 500k sets of 20 thumbs each, filled a 500gb drive 92%.. some thumbs are 10kb, some are 35kb.. and roughly 10-million of them..

edit.. was off by 172,000 set.. total is 672k sets for 20

Last edited by rickdu; 02-26-2012 at 02:37 AM..
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 02:35 AM   #13
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
windows or unix?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 02:40 AM   #14
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
unix.. freebsd 8
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 02:47 AM   #15
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,606
Quote:
Originally Posted by EddyTheDog View Post
Yep - You can set with no compression.
Would try this one also..
__________________
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 05:06 AM   #16
PowerCum
CjOverkill
 
Industry Role:
Join Date: Apr 2003
Location: Woldwide
Posts: 1,328
You have several options to speed this by an order of magnitude:

Option 1:
If both HDs are the same size and from the same company and are the same model... I mean, both HDs are the same, then you have another option that will be considerably faster.

We use dd here instead of copying.

dd bs=10240k if=/dev/original of=/dev/copy


Option 2:
If on Linux, another option is to remount the original and the target partition with noatime option and then use the usual copy or rsync as normal. This will speed things alot when copying lots of small files. In this case rsync is better, even that it will be a bit slower than cp. The advantage of rsync when copying that much info is visible if the target HD has a sector error and copy process does not work properly. Rsync will warn you while cp will not.


Option 3:
Setup a RAID1 software raid between both HDs and it will automatically mirror the information. It will do practically the same as in option 1, but will do it slower and you will still be able to use that HD to serve thumbs or do whatever you want with them.
__________________
CjOverkill Traffic Trading Script
Free, secure and fast traffic trading script. Get your copy now
PowerCum is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 08:28 AM   #17
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
DD would be the quickest
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 08:32 AM   #18
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
That's a big tube

DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 09:07 AM   #19
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
Must be some solution for such kind of problem, something to finish it in 1 day
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2012, 09:38 AM   #20
Hermes
Confirmed User
 
Industry Role:
Join Date: Oct 2010
Posts: 264
It's a flaw in design of file system or copy function of OS. Maybe some program can speed it up that could have raw disk write access and cache the data properly.
__________________
The Most extensive list of Paxum affiliate programs -> Paxum Sponsors .net
Hermes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.