Closed Bug 1008241 Opened 11 years ago Closed 11 years ago

Put ccache on SSDs

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: massimo)

References

Details

Attachments

(3 files, 2 obsolete files)

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: nobody → mgervasini
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)
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+
Hi Chris, this patch updates how CCACHE_DIR is mounted
Attachment #8421824 - Attachment is obsolete: true
Attachment #8422525 - Flags: review?(catlee)
Attachment #8422525 - Flags: review?(catlee) → review+
Attachment #8422525 - Flags: checked-in+
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)
Attachment #8423286 - Flags: review?(catlee) → review+
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)
Attachment #8423981 - Flags: review?(catlee) → review+
Attachment #8423981 - Flags: checked-in+
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
Attached patch chmod.diffSplinter Review
Attachment #8425801 - Flags: review?(catlee)
Blocks: 986477
(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.
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+
Comment on attachment 8425801 [details] [diff] [review] chmod.diff replaced "g=rwxs" with "2775"
Attachment #8425801 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: