Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System prefetch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
obsrv
Apprentice
Apprentice


Joined: 19 Aug 2005
Posts: 167
Location: Panevėžys, Lithuania

PostPosted: Sun Sep 14, 2008 2:43 pm    Post subject: System prefetch Reply with quote

I have 8GB of DDR800 RAM and I'm thinking how to use the max out of it. Maybe it is possible to prefetch all libraries and binaries of Gentoo into RAM? SO it would run programs instantly?
_________________
SKA punk
Back to top
View user's profile Send private message
eXtIO
n00b
n00b


Joined: 26 Aug 2003
Posts: 46
Location: Germany

PostPosted: Sun Sep 14, 2008 3:04 pm    Post subject: Reply with quote

Hi,

there is something in the gentoo linux wiki:

http://www.gentoo-wiki.com/HOWTO_prefetch_files_on_boot
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9527
Location: beyond the rim

PostPosted: Sun Sep 14, 2008 3:06 pm    Post subject: Reply with quote

Possible, sure. Useful, probably not that much (load times are affected by more than just the IO for reading binaries and libraries, esp. for larger programs).
Back to top
View user's profile Send private message
obsrv
Apprentice
Apprentice


Joined: 19 Aug 2005
Posts: 167
Location: Panevėžys, Lithuania

PostPosted: Sun Sep 14, 2008 3:13 pm    Post subject: Reply with quote

Thanks for replies. I tried as in the wiki and I got:
pirate obsrv # emerge -av readahead-list

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] sys-apps/readahead-list-1.20060421.1016 USE="doc" 106 kB

Total: 1 package (1 new), Size of downloads: 106 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/readahead-list-1.20060421.1016
>>> Downloading 'http://distfiles.gentoo.org/distfiles/readahead-list-1.20060421.1016.tar.bz2'
--2008-09-14 18:12:32-- http://distfiles.gentoo.org/distfiles/readahead-list-1.20060421.1016.tar.bz2
Resolving distfiles.gentoo.org... 64.50.238.52, 140.211.166.134, 156.56.247.195, ...
Connecting to distfiles.gentoo.org|64.50.238.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108337 (106K) [application/x-tar]
Saving to: `/usr/portage/distfiles/readahead-list-1.20060421.1016.tar.bz2'

100%[==========================================================================================================================================>] 108,337 147K/s in 0.7s

2008-09-14 18:12:35 (147 KB/s) - `/usr/portage/distfiles/readahead-list-1.20060421.1016.tar.bz2' saved [108337/108337]

* readahead-list-1.20060421.1016.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking readahead-list-1.20060421.1016.tar.bz2 to /var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016 ...
* econf: updating readahead-list-1.20060421.1016/config/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating readahead-list-1.20060421.1016/config/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sbindir=/sbin --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... gcc3
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /bin/sed
checking for cmp... /usr/bin/cmp
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether user wants warnings... no
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking linux/fs.h usability... yes
checking linux/fs.h presence... yes
checking for linux/fs.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking whether x86_64-pc-linux-gnu-gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for ioctl... yes
checking for memchr... yes
checking for readahead... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating README
config.status: creating doc/Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/data/Makefile
config.status: creating contrib/init/Makefile
config.status: creating contrib/init/gentoo/Makefile
config.status: creating contrib/scripts/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016'
Making all in m4
make[2]: Entering directory `/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016/m4'
Making all in src
make[2]: Entering directory `/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016/src'
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -march=core2 -O2 -pipe -mmmx -msse2 -msse3 -mssse3 -Wall -W -MT filelist-order.o -MD -MP -MF ".deps/filelist-order.Tpo" -c -o filelist-order.o filelist-order.cxx; \
then mv -f ".deps/filelist-order.Tpo" ".deps/filelist-order.Po"; else rm -f ".deps/filelist-order.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -march=core2 -O2 -pipe -mmmx -msse2 -msse3 -mssse3 -Wall -W -MT readahead-list.o -MD -MP -MF ".deps/readahead-list.Tpo" -c -o readahead-list.o readahead-list.c; \
then mv -f ".deps/readahead-list.Tpo" ".deps/readahead-list.Po"; else rm -f ".deps/readahead-list.Tpo"; exit 1; fi
readahead-list.c: In function 'process_file':
readahead-list.c:111: warning: implicit declaration of function 'readahead'
readahead-list.c: At top level:
readahead-list.c:45: warning: 'program_header' defined but not used
readahead-list.c:46: warning: 'program_id' defined but not used
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -mmmx -msse2 -msse3 -mssse3 -Wall -W -Wl,-O1 -o readahead-list readahead-list.o
filelist-order.cxx:55: warning: deprecated conversion from string constant to 'char*'
filelist-order.cxx:56: warning: deprecated conversion from string constant to 'char*'
filelist-order.cxx:57: warning: deprecated conversion from string constant to 'char*'
filelist-order.cxx:77: warning: deprecated conversion from string constant to 'char*'
filelist-order.cxx:88: warning: 'typedef' was ignored in this declaration
filelist-order.cxx:97: warning: type qualifiers ignored on function return type
filelist-order.cxx:111: warning: type qualifiers ignored on function return type
filelist-order.cxx:112: warning: type qualifiers ignored on function return type
filelist-order.cxx:113: warning: type qualifiers ignored on function return type
filelist-order.cxx:114: warning: type qualifiers ignored on function return type
filelist-order.cxx:115: warning: type qualifiers ignored on function return type
filelist-order.cxx:116: warning: type qualifiers ignored on function return type
filelist-order.cxx:117: warning: type qualifiers ignored on function return type
filelist-order.cxx:118: warning: type qualifiers ignored on function return type
filelist-order.cxx:119: warning: type qualifiers ignored on function return type
filelist-order.cxx:120: warning: type qualifiers ignored on function return type
filelist-order.cxx:121: warning: type qualifiers ignored on function return type
filelist-order.cxx:122: warning: type qualifiers ignored on function return type
filelist-order.cxx:123: warning: type qualifiers ignored on function return type
filelist-order.cxx:124: warning: type qualifiers ignored on function return type
filelist-order.cxx:128: warning: type qualifiers ignored on function return type
filelist-order.cxx:129: warning: type qualifiers ignored on function return type
filelist-order.cxx:130: warning: type qualifiers ignored on function return type
filelist-order.cxx:131: warning: type qualifiers ignored on function return type
filelist-order.cxx:132: warning: type qualifiers ignored on function return type
filelist-order.cxx:133: warning: type qualifiers ignored on function return type
filelist-order.cxx:134: warning: type qualifiers ignored on function return type
filelist-order.cxx:135: warning: type qualifiers ignored on function return type
filelist-order.cxx:136: warning: type qualifiers ignored on function return type
filelist-order.cxx:137: warning: type qualifiers ignored on function return type
filelist-order.cxx:138: warning: type qualifiers ignored on function return type
filelist-order.cxx:139: warning: type qualifiers ignored on function return type
filelist-order.cxx:140: warning: type qualifiers ignored on function return type
filelist-order.cxx:141: warning: type qualifiers ignored on function return type
filelist-order.cxx:143: warning: type qualifiers ignored on function return type
filelist-order.cxx: In function 'void skel_command_msg_exit(FILE*, char*, unsigned char)':
filelist-order.cxx:336: error: 'exit' was not declared in this scope
filelist-order.cxx: In function 'void process_opts(int, char**)':
filelist-order.cxx:552: error: 'exit' was not declared in this scope
filelist-order.cxx:557: warning: deprecated conversion from string constant to 'char*'
filelist-order.cxx: At global scope:
filelist-order.cxx:56: warning: 'program_header' defined but not used
filelist-order.cxx:57: warning: 'program_id' defined but not used
make[2]: *** [filelist-order.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/work/readahead-list-1.20060421.1016'
make: *** [all] Error 2
*
* ERROR: sys-apps/readahead-list-1.20060421.1016 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 174: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/temp/environment'.
*

* Messages for package sys-apps/readahead-list-1.20060421.1016:

*
* ERROR: sys-apps/readahead-list-1.20060421.1016 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 174: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016/temp/environment'.
*
pirate obsrv #

runnin GCC 4.3.1 on AMD64
_________________
SKA punk
Back to top
View user's profile Send private message
ukavi
Apprentice
Apprentice


Joined: 09 Feb 2007
Posts: 181
Location: The Netherlands

PostPosted: Sun Sep 14, 2008 3:47 pm    Post subject: Reply with quote

contact the maintainer of the ebuild and the package developers, the guys forgot to include stdlib.h or something like that. can be fixed in minutes with a patch, and the developers should fix their tarballs too.
_________________
English is not my native language, please notify me of any mistakes.
Back to top
View user's profile Send private message
obsrv
Apprentice
Apprentice


Joined: 19 Aug 2005
Posts: 167
Location: Panevėžys, Lithuania

PostPosted: Sun Sep 14, 2008 7:27 pm    Post subject: Reply with quote

Very long time ago I head smth like mounting whole libs in ram, how do I do that?
_________________
SKA punk
Back to top
View user's profile Send private message
seqizz
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2008
Posts: 103

PostPosted: Wed Sep 17, 2008 4:10 am    Post subject: :\ Reply with quote

Should be this :
https://forums.gentoo.org/viewtopic-t-296892.html

And readahead, same problem & fixed for me, try the patch:
https://bugs.gentoo.org/show_bug.cgi?id=228167
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum