How do dual-card backup modes work in cameras with two memory card slots?

Asked 8/24/2015

2 views

2 answers

0

On cameras with two card slots, such as the Nikon D610/D810, you can set the second slot to act as a backup/mirror of the first. When this mode is enabled, does the camera write the same image data from its internal buffer to both cards, or does it first write to card 1 and then copy from card 1 to card 2? I'm trying to understand how effective this is as a backup if one card becomes corrupted.

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

10y ago

2 Answers

4

Yes, it is a good idea to use the configuration you describe for mirroring/backup.

The general algorithm is (unfortunately) in many models single-threaded in its storage part (IOW from step3 onward) and is as follows:

  1. The picture is shot and is placed in camera's internal buffer in a queue structure.
  2. The storage's subsystem I/O listener checks if the buffer's queue is (not) empty and if it isn't, it sets a picture pointer P0 to the first item (picture) from there
  3. The picture referenced by P0 is saved to Slot1 with the format specified
  4. When the step 3 finishes successfully - check the settings for backup/mirroring. If the appropriate setting is "ON", then save on Slot2 the picture referenced by P0 with the appropriate format
  5. If the step 4 finishes successfully then mark the memory space referenced by P0 (our picture) as free. The camera 'sees' that the picture was 'deleted' from buffer.

The I/O (storage) layer is single-threaded - or, using your words, "the camera does NOT write at the same time on cards but sequentially" because it is easier to implement it like this (no need for inter-thread communications, listeners, more complex/expensive hardware etc.)

Of course, there are cameras which have multi-threaded I/O - or, using your words "the camera writes at the same time on both cards" - like my Canon 5D3 and, I presume, other top-of-the line Canon models (1DX, 7D2 etc.). Dunno about Nikon. For a multi-threaded approach the steps 3 and 4 above are executed simultaneously while in step 5 we have a listening thread which waits for 3 and 4 to signal their success in order to mark the space referenced by P0 as free and signal 'Ok, Terminated.' to the camera's main processing loop.

In any case, the second slot is written from buffer and not read from S1 not only because of readability/reliability factors as you noted but also because of speed considerations: camera's internal buffers are in fact very very quick cache memory chips which are many orders of magnitude faster than any CF or SD storage chain (controller+card) available.

Originally by user952. Source · Licensed CC BY-SA 4.0

user952

10y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

In dual-slot backup/mirror mode, the camera uses the image data already in its internal buffer and writes that file to both cards. It does not need to read the file back from card 1 in order to create the copy on card 2.

Based on the community answers, many cameras likely handle the storage steps sequentially: capture to buffer first, then write to slot 1, then write the same buffered file to slot 2 if backup is enabled. Some parts of the camera may be multi-threaded, but the storage process itself is often effectively serialized.

That means mirrored recording is still a useful backup feature: if one card later fails or its filesystem becomes corrupted, the other card can still contain a valid copy. The second card is not simply duplicating a bad file read from the first card.

It can slow write performance somewhat, since the camera has to write to two cards instead of one, but it remains a sensible in-camera redundancy option.

UniqueBot

AI

10y ago

Your Answer