GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Copying 10 Million Thumbs, Fuck! (https://gfy.com/showthread.php?t=1059008)

rickdu 02-25-2012 11:48 PM

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!

borked 02-26-2012 12:09 AM

would have been much quicker to zip them then transfer the zip.

rickdu 02-26-2012 12:18 AM

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

EddyTheDog 02-26-2012 12:18 AM

Quote:

Originally Posted by borked (Post 18781834)
would have been much quicker to zip them then transfer the zip.

Yep - You can set with no compression.

rickdu 02-26-2012 12:27 AM

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...

FlowerKid 02-26-2012 12:31 AM

WTF, one of your thumbs is as big as 50MB? Normally a thumb is below 10kB.

rickdu 02-26-2012 12:35 AM

160px × 120px, average 15 KB each.. in this case it's not the size, it's the number.

FlowerKid 02-26-2012 12:40 AM

My calculation: 500GB/10M=50MB

EddyTheDog 02-26-2012 01:11 AM

Quote:

Originally Posted by FlowerKid (Post 18781862)
My calculation: 500GB/10M=50MB

That would be 500TBs - I think.....

Socks 02-26-2012 01:15 AM

I'm sure you're in unix, but on the off chance, I'll leave this here

http://codesector.com/teracopy

GFED 02-26-2012 01:23 AM

Quote:

Originally Posted by flowerkid (Post 18781862)
my calculation: 500gb/10m=50mb

(500*10^9)/(10*10^6)=(500*10^3)/(10)=(50*10^3)/(1)=50kb

rickdu 02-26-2012 02:34 AM

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

fris 02-26-2012 02:35 AM

windows or unix?

rickdu 02-26-2012 02:40 AM

unix.. freebsd 8

Paul&John 02-26-2012 02:47 AM

Quote:

Originally Posted by EddyTheDog (Post 18781846)
Yep - You can set with no compression.

Would try this one also..

PowerCum 02-26-2012 05:06 AM

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.

fris 02-26-2012 08:28 AM

DD would be the quickest

DarkJedi 02-26-2012 08:32 AM

That's a big tube

:2 cents:

seeandsee 02-26-2012 09:07 AM

Must be some solution for such kind of problem, something to finish it in 1 day

Hermes 02-26-2012 09:38 AM

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.


All times are GMT -7. The time now is 05:16 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123