Live Business Chat
2013 May 21, 04:06:44 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Some accounts got accidentally deleted by anti-spam software during a spammer attack on this forum. Please re-register. If you have trouble, contact badon or tamo42 in the chat. This is a friendly non-profit discussion group about making money. You won't be able to see all forums at first. You have to register to see more forums. Click the "NOTIFY" button every chance you get to receive instant alerts about new information.
 
   Home   Help Search Calendar Login Register  
Pages: « 1 2  All   Go Down
  Print  
Author Topic: Multiple Instances  (Read 542 times)
0 Members and 1 Guest are viewing this topic.
jonnyboy
Planner
*

Karma: +0/-0
Offline Offline

Posts: 21


« Reply #10 on: 2012 Mar 13, 09:52:46 pm »

I used 4 separate drives for the swap files. I will be setting up a server with zfs and at least 12 drives and I will test it with a single drive, but separate folder. I do not own any SSD's but that might work, depends on read speed.

Using the same drive for the swap files caused it to stall several times, at least it 'appeared' to stall.
Logged

jonnyboy
Planner
*

Karma: +0/-0
Offline Offline

Posts: 21


« Reply #11 on: 2012 Mar 15, 03:49:39 am »

this 3.03 is for testing purposes only. This creates a dummy file to show that HDD is busy by an instance. After portion swapped this deletes the dummy file so other instances can continue.

This affects currently swap stage only, encoding and restoring could stall as before.
It appears that the dummy file is being created, then a file fragment is being written, then the dummy file is removed and the process continues until the entire swap file has been written. If that is correct, running multiple instances would produce severely fragmented filesets, making them more IO intensive and slower.

I am testing 2 instances and both are running concurrently. I expected 1 process to wait for the other to complete, it did not. The dummy file is only visible in the swap folder occasionally.
I did notice something  I had not noticed before. The hash table only appears to be calculated by 1 process. The other processes just zip through it, must be able to access the results in memory.
Logged

persicum
Moderator
Serious Business
*****

Karma: +2/-1
Offline Offline

Posts: 122


« Reply #12 on: 2012 Mar 15, 11:07:38 pm »

Quote
It appears that the dummy file is being created, then a file fragment is being written, then the dummy file is removed and the process continues until the entire swap file has been written. I am testing 2 instances and both are running concurrently. I expected 1 process to wait for the other to complete, it did not. The dummy file is only visible in the swap folder occasionally.
Yes, that’s right. Does this behavior have any effects as compared to older version? Is elapsed time better or worse?
Quote
If that is correct, running multiple instances would produce severely fragmented filesets, making them more IO intensive and slower.
The prog always allocates free space before filling swaps with actual bytes.
Quote
I expected 1 process to wait for the other to complete, it did not.
Would it be a queue behavior? You may run instances one after one from a GUI.
BTW, besides swapping other stages as encoding and restoring are also very disk intensive, too.
If one wants multiple instances he must have multiple HDDs as well =))

Quote
I did notice something  I had not noticed before. The hash table only appears to be calculated by 1 process. The other processes just zip through it, must be able to access the results in memory.
Sorry, I cannot understand what you mean.
Logged
jonnyboy
Planner
*

Karma: +0/-0
Offline Offline

Posts: 21


« Reply #13 on: 2012 Mar 16, 02:55:58 pm »

What I was getting at is:

If I start 1 instance and it progresses through the list of files creating the hash table and 2 minutes into it I start 3 more instances, within 30 seconds, the other 3 instances are processing the exact same file as the first instance. It did not slow down, the others caught up.
Logged

jonnyboy
Planner
*

Karma: +0/-0
Offline Offline

Posts: 21


« Reply #14 on: 2012 Mar 16, 02:57:40 pm »

Is elapsed time better or worse?
It did not appear to be faster than individual instances and the processes never completed. I tried 3 times and it crashed 3 times, never completing.
Logged

persicum
Moderator
Serious Business
*****

Karma: +2/-1
Offline Offline

Posts: 122


« Reply #15 on: 2012 Mar 16, 10:36:14 pm »

Did you give a different -bn to each instance while testing upon same fileset?
Logged
persicum
Moderator
Serious Business
*****

Karma: +2/-1
Offline Offline

Posts: 122


« Reply #16 on: 2012 Mar 17, 07:01:26 am »

I have tested three instances in a common folder both for -wt and -wrr switches. I have not found any troubles except severe HDD head seek. They worked concurrently. Of course, I gave them three different -bn, namely -bntest1, -bntest2 and -bntest3.

If one has only one extra drive, which is HardDiskDrive and is not SolidStateDrive or RAMDisk, I don't know how prevent stall except simple queue. But a queue is not a concurrent execution.
Logged
Pages: « 1 2  All   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 19 queries.