# Server and agent folders

**URL:** <https://www.finalbuilder.com/forums/t/server-and-agent-folders/5566>\
**Category:** Discussion\
**Created:** [May 19, 2017, 5:19am UTC](https://www.finalbuilder.com/forums/t/server-and-agent-folders/5566 "2017-05-19T05:19:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![braindead](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@braindead](https://www.finalbuilder.com/forums/u/braindead)\
**Post date:** [May 19, 2017, 5:19am UTC](https://www.finalbuilder.com/forums/t/server-and-agent-folders/5566/1 "2017-05-19T05:19:19Z")

</div>

We have our server and agent on the same system.&nbsp; Recently our IT folks deployed a new virus scanner, and it's killing our performance (doubling build times).  
  
What I'd like to to is exclude redundant scans.&nbsp; In order to make a call on that, I need to understand what these folders are for.  
  
agent config:   
server config:&nbsp;   
\\DEVCONTINUA\CI share points to E:\Continua  
  
What I'm trying to figure out is what each of the following folders contains, so that I can exclude redundant virus scanning:  
  
E:\Continua\Rc  
E:\Continua\Ws  
E:\Workspace\Repos  
E:\Workspace\Ws  
  
Here's my current theory on the contents:  
  
Server DataSharePath:  
&nbsp; \Rc cache for repositories  
&nbsp; \Ws is server copy of agent workspace and used for agent-server and server-agent workspace sync  
  
AgentWorkspacePath  
&nbsp; \Repos - I'm not sure what this is for??  
&nbsp; \Ws - agent workspace, copied from server \Ws, builds happen here  
  
Any tips appreciated.&nbsp;&nbsp; I'd like to keep the redundant virus scanning to a minimum.&nbsp; So far I've requested they exclude E:\Workspace as I suspect that's the main issue.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [May 22, 2017, 3:50am UTC](https://www.finalbuilder.com/forums/t/server-and-agent-folders/5566/2 "2017-05-22T03:50:20Z")

</div>

Hi,  
  
Your description of the various folders is correct. The AgentWorkspacePath \Repos folder in the agent workspace stores a clone of each repository cache.  
  
Here’s how the folders are used in the build process.

- Repository files are exported to the server repository cache (E:\Continua\Rc) when repositories are polled.
- Differences are synchronised from the repository cache on the server to the repository cache on the agent (E:\Workspace\Repos) when required for starting a build stage.
- Repository files are exported from the agent repository cache to the agent workspace folder (E:\Workspace\Ws) when a build stage starts (according to the repository rules).
- Other files may be transferred from the server workspace folder (E:\Continua\Ws) to the agent workspace folder when a build stage starts (according to the workspace rules).
- Files are transferred from the agent workspace folder to the server workspace folder when a build stage completes (according to the workspace rules).

  
There is likely to be significant I/O&nbsp;on each on these folders, the efficiency of which is affected by real-time virus scanning. Repository performance is particularly influenced by I/O throughput on the repository cache folders.&nbsp;  
  
For optimal performance, exclude both E:\Continua and E:\Workspace from real-time virus protection. You should however include these folders in a scheduled virus scan - preferably at a time when not many builds are running. Also ensure that that these folders are properly secured so that they are only accessible by the server and agent service accounts.&nbsp;  
  
If you are using the bundled PostgreSql database, database performance can also be optimised by excluding %ProgramData%\VSoft\ContinuaCI\PostgreSQLDB.  
  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![braindead](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@braindead](https://www.finalbuilder.com/forums/u/braindead)\
**Post date:** [May 22, 2017, 2:55am UTC](https://www.finalbuilder.com/forums/t/server-and-agent-folders/5566/3 "2017-05-22T02:55:57Z")

</div>

Thank you for the recommendations.
