Update README.md
This commit is contained in:
20
README.md
20
README.md
@@ -2,21 +2,21 @@
|
|||||||
Periodically checks for a running backup-process and pauses PrimoCache during the backup, so that the cache will not be tainted by reading the whole disk
|
Periodically checks for a running backup-process and pauses PrimoCache during the backup, so that the cache will not be tainted by reading the whole disk
|
||||||
|
|
||||||
## What?
|
## What?
|
||||||
While PrimoCache tries to Cache frequently used data and leave the seldomly accessed data on a slow spinning disk, running backups can interfere with this logic. Many backup Programs cannot "read around" the cache so the whole disk while be read while performing a backup.
|
While PrimoCache tries to Cache frequently used data and leave the seldomly accessed data on a slow spinning disk, running backups can interfere with this logic. Many backup Programs cannot *read around* the cache so the whole disk while be read while performing a backup.
|
||||||
|
|
||||||
This will ultimately lead to many data in the Cache which should not be there. So one has to manually pause the Cache while the backup is running and resmue it once that is finished.
|
This will ultimately lead to many data in the Cache which should not be there. So one has to manually pause the Cache while the backup is running and resume it once that is finished.
|
||||||
|
|
||||||
This is awfully annoying so here is a small tool to do that automatically
|
This is awfully annoying so here is a small tool to do that automatically!
|
||||||
|
|
||||||
## How?
|
## How?
|
||||||
The Program **PrimoCacheBackupDetect** will run in the background and periodically check if the configured backup-process is running and, if needed, also has large enough memory footprint which will indicate, that the backup is indeed running.
|
The Program **PrimoCacheBackupDetect** will run in the background and periodically check if the configured backup-process is running and, if wanted, also has a large enough memory footprint which will indicate, that the backup is indeed running.
|
||||||
If that is true, the Program will pause the PrimoCache via CLI and resume it, as soon as the backup-process stops or falls again below the above mentioned threshold for memory consumption.
|
If that is true, the Program will pause the PrimoCache via CLI and resume it, once the backup-process stops or falls again below the above mentioned threshold for memory consumption.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
**Important** The PrimoCache GUI must not be running because the PrimoCache CLI cannot perform its tasks otherwise!
|
**Important The PrimoCache GUI must not be running because the PrimoCache CLI cannot perform its tasks otherwise!**
|
||||||
|
|
||||||
Simply download a current release and run the .exe file. The Program will instantly startup and dock itself within your systray.
|
Simply download a current release and run the .exe file. The Program will instantly startup and dock itself within your systray.
|
||||||
With default Settings it is configured to detect *Ashampoo Backup 2018* as this is the software I currently use.
|
With default Settings it is configured to detect *Ashampoo Backup 2018* as this is the Backup-Software I currently use.
|
||||||
|
|
||||||
### Configuring another Backup-Software
|
### Configuring another Backup-Software
|
||||||
Place the provided .ini File in the same directory as the .exe and change it according to your needs:
|
Place the provided .ini File in the same directory as the .exe and change it according to your needs:
|
||||||
@@ -25,7 +25,7 @@ Option | Default-Value | Description
|
|||||||
------ | ------------- | -----------
|
------ | ------------- | -----------
|
||||||
Interval | 10000 | Time in milliseconds between each check
|
Interval | 10000 | Time in milliseconds between each check
|
||||||
Process | backupService-ab.exe | The name of the backup-process (case-sensitive)
|
Process | backupService-ab.exe | The name of the backup-process (case-sensitive)
|
||||||
Threshold | 50000000 | If this is set higher than **0** the backup-process must also have a memory-footprint this large (in bytes) so the program detects a running backup.
|
Threshold | 50000000 | If this is set higher than **0** the backup-process must also have a memory-footprint this large (in bytes) so the program detects a running backup
|
||||||
PauseCmd | "C:\Program Files\PrimoCache\rxpcc.exe" pause -s -a | Command to be issued as soon as a running backup is detected (keep the quotation marks if the Path to the command contains spaces!)
|
PauseCmd | "C:\Program Files\PrimoCache\rxpcc.exe" pause -s -a | Command to be issued as soon as a running backup is detected (keep the quotation marks if the Path to the command contains spaces!)
|
||||||
ResumeCmd | "C:\Program Files\PrimoCache\rxpcc.exe" resume -s -a | Command to be issued as soon as the backup process finishes (keep the quotation marks if the Path to the command contains spaces!)
|
ResumeCmd | "C:\Program Files\PrimoCache\rxpcc.exe" resume -s -a | Command to be issued as soon as the backup process finishes (keep the quotation marks if the Path to the command contains spaces!)
|
||||||
|
|
||||||
@@ -34,11 +34,11 @@ This functionality is needed for a backup-software like *Ashampoo Backup 2018* w
|
|||||||
|
|
||||||
You can simply configure your process and an arbitrary threshold in the .ini File and then run the Program. Click on the Icon in the systray and select **Check Process**.
|
You can simply configure your process and an arbitrary threshold in the .ini File and then run the Program. Click on the Icon in the systray and select **Check Process**.
|
||||||
|
|
||||||
The Program will then output some Details about the process (if it is running) along with the memory footprint. After that another message will be displayed, if the process reached the configured memory-threshold. Do this multiple times and write down numbers for the memory footprint while the process is running and while it is idle.
|
The Program will then output some Details about the process (if it is running) along with the memory-footprint. After that another message will be displayed, if the process reached the configured memory-threshold. Do this multiple times and write down numbers for the memory-footprint while the process is running and while it is idle.
|
||||||
The correct threshold should be configured to a value between the average while running and idling.
|
The correct threshold should be configured to a value between the average while running and idling.
|
||||||
|
|
||||||
### Autostart the Program on boot
|
### Autostart the Program on boot
|
||||||
Place the .exe and the .ini Files in a directory of your choice (they shall remain there forever). Then run the Program from that location. Click on the Icon in the systray and select **Set Autostart on Boot**
|
Place the .exe and the .ini Files in a directory of your choice (they shall remain there). Then run the Program from that location. Click on the Icon in the systray and select **Set Autostart on Boot**
|
||||||
This will create a scheduled task which will start the Program each time you logon to your computer.
|
This will create a scheduled task which will start the Program each time you logon to your computer.
|
||||||
|
|
||||||
### Remove Autostart
|
### Remove Autostart
|
||||||
|
|||||||
Reference in New Issue
Block a user