Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 238361 Details for
Bug 218024
sys-apps/readahead-list init script file need update for openrc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/usr/sbin/readahead-list-lsof list-generation-script based on lsof
readahead-list-lsof (text/plain), 607 bytes, created by
Domenic Dietel
on 2010-07-11 21:38:36 UTC
(
hide
)
Description:
/usr/sbin/readahead-list-lsof list-generation-script based on lsof
Filename:
MIME Type:
Creator:
Domenic Dietel
Created:
2010-07-11 21:38:36 UTC
Size:
607 bytes
patch
obsolete
>#!/bin/bash > >outputfile="$1" >total_samples_per_boot=128 # adjust to your needs > >function collect_sample() >{ > lsof -F n -f | grep "^n" | sed -e 's/^n//g' | grep -e "^/etc" -e "^/bin" -e "^/sbin" -e "^/usr" -e "^/var" -e "^/lib" > $1 >} > >collect_sample /tmp/lsofsample1 > >i=0 >while [ "$i" -ne "$total_samples_per_boot" ] ; do > collect_sample /tmp/lsofsample2 > cat /tmp/lsofsample1 /tmp/lsofsample2 | awk '!x[$1]++' > /tmp/lsofsample3 > mv /tmp/lsofsample3 /tmp/lsofsample1 > sleep 0.33 # try 0.5 or 1 if you have problems > i=$((i+1)) >done > >cat /tmp/lsofsample1 > "$outputfile" > >rm -f /tmp/lsofsample[123]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 218024
:
157363
|
157365
|
168928
|
238355
| 238361 |
239903
|
249377