Closed
Bug 1008241
Opened 11 years ago
Closed 11 years ago
Put ccache on SSDs
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: catlee, Assigned: massimo)
References
Details
Attachments
(3 files, 2 obsolete files)
8.17 KB,
patch
|
catlee
:
review+
massimo
:
checked-in+
|
Details | Diff | Splinter Review |
3.19 KB,
patch
|
catlee
:
review+
massimo
:
checked-in+
|
Details | Diff | Splinter Review |
1.01 KB,
patch
|
catlee
:
review+
massimo
:
checked-in+
|
Details | Diff | Splinter Review |
It's likely that a lot of our IO on EBS is for the local ccache. Let's move that off of EBS onto SSD wherever possible.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mgervasini
Assignee | ||
Comment 1•11 years ago
|
||
This patch moves the /builds/ccache directory to the instance storage (and mounts it), adding a new entry in fstab:
<instance_storage_mount_point>/ccache /builds/ccache none bind,noatime 0 0
Attachment #8421824 -
Flags: review?(catlee)
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 8421824 [details] [diff] [review]
[puppet] Bug 1008241 - Put ccache on SSDs.patch
Review of attachment 8421824 [details] [diff] [review]:
-----------------------------------------------------------------
just a few nits.
::: modules/aws/files/manage_instance_storage.py
@@ +321,4 @@
> """Updates /etc/fstab if needed"""
> # example:
> # /dev/sda / ext4 defaults,noatime 1 1
> + #mount -o bind,noatime /builds/slave/ccache /builds/ccache/
left-over comment?
@@ +505,5 @@
> + try:
> + os.makedirs(ccache_dst)
> + log.debug('created %s', ccache_dst)
> + except OSError, error:
> + log.debug('cannot create %s: %s', ccache_dst, error)
if this fails, we should probably abort
Attachment #8421824 -
Flags: review?(catlee) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Hi Chris,
this patch updates how CCACHE_DIR is mounted
Attachment #8421824 -
Attachment is obsolete: true
Attachment #8422525 -
Flags: review?(catlee)
Reporter | ||
Updated•11 years ago
|
Attachment #8422525 -
Flags: review?(catlee) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8422525 -
Flags: checked-in+
Assignee | ||
Comment 4•11 years ago
|
||
Hi Chris,
this patch moves mock_mozilla dir to the instance storage and prevents duplicate entries in /etc/fstab when an instance moves in/out from a jacuzzi pool.
Attachment #8423286 -
Flags: review?(catlee)
Reporter | ||
Updated•11 years ago
|
Attachment #8423286 -
Flags: review?(catlee) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Hi catlee,
Bug 1011257 has made some changes on manage_instance_storage.py it's probably better to have another review.
Thanks
Attachment #8423286 -
Attachment is obsolete: true
Attachment #8423981 -
Flags: review?(catlee)
Reporter | ||
Updated•11 years ago
|
Attachment #8423981 -
Flags: review?(catlee) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8423981 -
Flags: checked-in+
Comment 6•11 years ago
|
||
hmm, looks like we are missing group uid bit on mock_mozilla directory
new: drwxr-xr-x 2 root mock_mozilla 4096 May 20 2014 mock_mozilla
old: drwxrwsr-x 5 root mock_mozilla 4096 May 20 12:22 mock_mozilla
Severity: normal → critical
Comment 7•11 years ago
|
||
Attachment #8425801 -
Flags: review?(catlee)
Comment 8•11 years ago
|
||
(In reply to Rail Aliiev [:rail] from comment #7)
> Created attachment 8425801 [details] [diff] [review]
> chmod.diff
I'm off on Wed (and maybe Thu). mgerva, can you take care of deploying this patch if it passes catlee's review please.
Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 8425801 [details] [diff] [review]
chmod.diff
Review of attachment 8425801 [details] [diff] [review]:
-----------------------------------------------------------------
would work for now, but I think being completely explicit is better:
chmod 2775 <dirname>
(TIL about using = for chmod bits!)
Attachment #8425801 -
Flags: review?(catlee) → review+
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8425801 [details] [diff] [review]
chmod.diff
replaced "g=rwxs" with "2775"
Attachment #8425801 -
Flags: checked-in+
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•