4. Writer
Database
p4 submit
Lockless Reads
Writer does not block
Reader
p4 changes
✗
Reader 4
5. 5
Before After
Total Commands 3,518,462 3,211,786
Total write-wait-time 58,468s
Total read-wait-time 1,033,957s
VMware with 5,000 users
(24 hour period)
3,430s
17X
992s 1000X
8. 8
Commands affected, before Lockless
Commands affected, after Lockless
1,749
Commands affected by delays
3,000
2,500
2,000
1,500
1,000
500
0 0
Seconds of
delay
1 2 4 8 16 32 64 128 256
9. 9
• Commit/Edge modes for server
• Local metadata with edge services
• Submits propagated to commit service
• Other commands execute locally
Commit
Edge Edge
11. 11
• Distribute workload to multiple nodes
• Better performance and experience for all users
From This… To This…
System Activity User Activity User Activity User Activity
2%
Commit
34% 33% 33%
Workspace
Server
Workspace
Server
Workspace
Server
Activity
100%
P4D
17. 17
Router
P4D Depot
P4D P4D
Router
Depot
Master
Master P4D P4D P4D
NAS
NAS
P4D Stand-by P4D
WAN
18. 18
• Parallel Sync – cut Sync times by 50%-75%
• Parallel Submit – cut submit times in half
• File Delta transfers – reduce content size
• End to End optimizations for high latency
19. 19
Optimizations
for Reconcile/Status
Cut times by 75% or more
O
db.have –
reduced in size by
35%
Fewer pages = faster access
Optimizations
for Reconcile/Status
Cut times by 75% or more
20. 20
Clustering
• Horizontal Scaling
• High Availability
File Transfer
• Transmit in parallel
• Binary deltas
Multi-Data
Centre
• Failover to other site
Cluster
Manager
• Management Console
• Monitoring
21. 21
Thank you!
Questions?
See us in the Demo Lounge P4IdeaX Forums
John Palmer
jpalmer@perforce.com