Skip to content

Commit 1849793

Browse files
Alex Williams-FerreiraCopilot
andcommitted
Mask apt-daily timers in SPEC CPU profiles to prevent VC restarts on Ubuntu 24.04
On Ubuntu 24.04, apt-daily-upgrade.timer fires between 06:00-07:00 UTC and triggers needrestart (default installed on 24.04, not 22.04) which auto-restarts services whose libraries were updated. This has been observed to SIGKILL VirtualClient mid-run, desynchronizing packed SPEC CPU experiments and invalidating results. Analysis of ~4,700 Ubuntu 24.04 SYSAUTO VMs showed ~29% restart rate, with 80% concentrated at hour 6 UTC and minute-of-hour distribution uniform 0-59 (signature of RandomizedDelaySec=60min on the timer). Ubuntu 22.04, Windows, and focal VMs showed 0% restarts in the same window. Masking both apt-daily.timer and apt-daily-upgrade.timer (plus their services) as a dependency step at profile startup removes the trigger. Filtered to linux-x64,linux-arm64 via SupportedPlatforms. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8763ac1 commit 1849793

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

src/VirtualClient/VirtualClient.Main/profiles/PERF-SPECCPU-FPRATE.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
}
4242
],
4343
"Dependencies": [
44+
{
45+
"Type": "ExecuteCommand",
46+
"Parameters": {
47+
"Scenario": "MaskAptDailyTimers",
48+
"SupportedPlatforms": "linux-x64,linux-arm64",
49+
"Command": "bash -c 'systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; systemctl stop apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; exit 0'"
50+
}
51+
},
4452
{
4553
"Type": "ChocolateyInstallation",
4654
"Parameters": {

src/VirtualClient/VirtualClient.Main/profiles/PERF-SPECCPU-FPSPEED.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
}
4242
],
4343
"Dependencies": [
44+
{
45+
"Type": "ExecuteCommand",
46+
"Parameters": {
47+
"Scenario": "MaskAptDailyTimers",
48+
"SupportedPlatforms": "linux-x64,linux-arm64",
49+
"Command": "bash -c 'systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; systemctl stop apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; exit 0'"
50+
}
51+
},
4452
{
4553
"Type": "ChocolateyInstallation",
4654
"Parameters": {

src/VirtualClient/VirtualClient.Main/profiles/PERF-SPECCPU-INTRATE.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
}
4242
],
4343
"Dependencies": [
44+
{
45+
"Type": "ExecuteCommand",
46+
"Parameters": {
47+
"Scenario": "MaskAptDailyTimers",
48+
"SupportedPlatforms": "linux-x64,linux-arm64",
49+
"Command": "bash -c 'systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; systemctl stop apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; exit 0'"
50+
}
51+
},
4452
{
4553
"Type": "ChocolateyInstallation",
4654
"Parameters": {

src/VirtualClient/VirtualClient.Main/profiles/PERF-SPECCPU-INTSPEED.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
}
4242
],
4343
"Dependencies": [
44+
{
45+
"Type": "ExecuteCommand",
46+
"Parameters": {
47+
"Scenario": "MaskAptDailyTimers",
48+
"SupportedPlatforms": "linux-x64,linux-arm64",
49+
"Command": "bash -c 'systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; systemctl stop apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; exit 0'"
50+
}
51+
},
4452
{
4553
"Type": "ChocolateyInstallation",
4654
"Parameters": {

0 commit comments

Comments
 (0)