or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
tags:
cloud-init
bootspeed
Azure async mkfs/mount testing
Modifying cloud-init to utilize systemd-makefs for mkfs + mount service in parallel to cloud-init execution. Azure datasouce includes built-in config for partitioning, formating and mounting the ephemeral disk. This work is done serialy and runs before cloud-init generates ssh keys which delays the time to ssh login.
An initial test on an L4s with 700GB ephemeral and attaching a 1023GB secondary disk configured to be formatted with ext4 and mounted result in a time to sshd being ready of about 44 seconds. The following cloud-config attached to the instance is used to trigger a particular path through cloud-init.
Collecting times from systemd and cloud-init, note we spend 16.6 seconds in 'disk_setup' (partitioning and mkfs), and that sshd is started at 42 seconds into the boot.
Using x-systemd.makefs to defer the mkfs and mount (to run in parallel with cloud-init), we spend just 2.7 seconds in 'disk_setup' (partitioning is not handled by systemd-makefs), and deferred the ~17 seconds of mkfs to systemd units. The net result is sshd is started after 14 seconds of uptime.