- 浏览: 3099353 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (372)
- diy (4)
- linux (19)
- 杂项 (30)
- Swing (21)
- Java2D (21)
- Java3D (5)
- JavaIO (9)
- Java通讯 (5)
- Java设计模式 (3)
- Java多媒体 (0)
- Java算法 (7)
- Spring&EJB (29)
- Javaoffice (4)
- web前端 (23)
- javascript (1)
- php基础 (1)
- eclipse (3)
- 网站相关 (3)
- Apache (4)
- seo (12)
- db (28)
- server (3)
- api (4)
- 异常 (12)
- 计算机网络词汇表 (3)
- 随想录 (52)
- 收藏 (17)
- 犹太人的智慧 (3)
- 多线程 (1)
- jfreechart (7)
- Test (1)
- SorLib (30)
- ruby on rails (1)
最新评论
-
houyutao:
二三四都是错的空字符串也被匹配,*应该改成+
Java中判断字符串是否为数字的五种方法 -
mingyun:
但是 java.util.ArrayList 实现了 remo ...
java.lang.UnsupportedOperationException 解决方案 -
mingyun:
1.因为 Arrays.asList 返回的是 Arrays内 ...
java.lang.UnsupportedOperationException 解决方案 -
leolu007:
用java8新特性String testStr = " ...
java.lang.UnsupportedOperationException 解决方案 -
zhaohuaxishiwzw:
我之前所在的项目就是日本一家证券公司的项目。完全使用的是j2e ...
抛弃EJB(EJB2.0,EJB3.0,EJB4.0)
本教程旨在说明如何在 Ubuntu 9.04 系统上安装 Preload ,并使用它为系统提速。Preload 是一个自适应预读守护进程。它监控用户运行的应用程序,并且分析这些数据,预测用户可能运行的程序,并读取这些程序的二进制文件及其依赖文件到系统内存,以达到加速启动的时间。
本文当不做任何形式的担保!我不保证它能在你的系统上正常工作!
安装 Preload
要安装 Preload ,首先打开终端 (应用程序/附件/终端),然后输入:
sudo aptitude install preload
来安装 Preload 。
安装完成。Preload 将在后台静静运行。如果你想改变 Preload 的行为,你可以编辑它的配置文件 /etc/preload.conf 。这是它的默认配置:
sudo gedit /etc/preload.conf
[model]
# cycle:
#
# This is the quantum of time for preload. Preload performs
# data gathering and predictions every cycle. Use an even
# number.
#
# Note: Setting this parameter too low will may reduce the
# system performance and stability.
#
# unit: seconds
# default: 20
#
cycle = 20
# usecorrelation:
#
# Whether correlation coefficient should be used in the prediction
# algorithm. There are arguments both for and against using it.
# Currently it’s believed that using it results in more accurate
# prediction. The option may be removed in the future.
#
# default: true
usecorrelation = true
# minsize:
#
# Minimum sum of the length of maps of the process for
# preload to consider tracking the application.
#
# Note: Setting this parameter too high will make preload less
# effective, while setting it too low will make it eat
# quadratically more resources, as it tracks more processes.
#
# unit: bytes
# default: 2000000
#
minsize = 2000000
#
# The following control how much memory preload is allowed to use
# for preloading in each cycle. All values are percentages and are
# clamped to -100 to 100.
#
# The total memory preload uses for prefetching is then computed using
# the following formulae:
#
# max (0, TOTAL * memtotal + FREE * memfree) + CHACED * memcached
# where TOTAL, FREE, and CACHED are the respective values read at
# runtime from /proc/meminfo.
#
# memtotal: precentage of total memory
#
# unit: signed_integer_percent
# default: -10
#
memtotal = -10
# memfree: precentage of free memory
#
# unit: signed_integer_percent
# default: 100
#
memfree = 100
# memcached: precentage of cached memory
#
# unit: signed_integer_percent
# default: 30
#
memcached = 30
###########################################################################
[system]
# doscan:
#
# Whether preload should monitor running processes and update its
# model state. Normally you do want that, that’s all preload is
# about, but you may temporarily want to turn it off for various
# reasons like testing and only make predictions. Note that if
# scanning is off, predictions are made based on whatever processes
# have been running when preload started and the list of running
# processes is not updated at all.
#
# default: true
doscan = true
# dopredict:
#
# Whether preload should make prediction and prefetch anything off
# the disk. Quite like doscan, you normally want that, that’s the
# other half of what preload is about, but you may temporarily want
# to turn it off, to only train the model for example. Note that
# this allows you to turn scan/predict or or off on the fly, by
# modifying the config file and signalling the daemon.
#
# default: true
dopredict = true
# autosave:
#
# Preload will automatically save the state to disk every
# autosave period. This is only relevant if doscan is set to true.
# Note that some janitory work on the model, like removing entries
# for files that no longer exist happen at state save time. So,
# turning off autosave completely is not advised.
#
# unit: seconds
# default: 3600
#
autosave = 3600
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It’s advised to make sure /dev is rejected, since
# preload doesn’t special-handle device files internally.
#
# default: (empty list, accept all)
mapprefix = /usr;/lib;!/
# exeprefix:
#
# The syntax for this is exactly the same as for mapprefix. The only
# difference is that this is used to accept or reject binary exectuable
# files instead of maps.
#
# default: (empty list, accept all)
exeprefix = !/usr/sbin;!/usr/local/sbin;/usr;!/
如果你更改了配置,你需要重启 Preload :
sudo /etc/init.d/preload restart
本文来自:http://huzuofeiwei.com/2009/07/speed-up-your-system-with-preload-on-ubuntu-904.html
本文当不做任何形式的担保!我不保证它能在你的系统上正常工作!
安装 Preload
要安装 Preload ,首先打开终端 (应用程序/附件/终端),然后输入:
sudo aptitude install preload
来安装 Preload 。
安装完成。Preload 将在后台静静运行。如果你想改变 Preload 的行为,你可以编辑它的配置文件 /etc/preload.conf 。这是它的默认配置:
sudo gedit /etc/preload.conf
[model]
# cycle:
#
# This is the quantum of time for preload. Preload performs
# data gathering and predictions every cycle. Use an even
# number.
#
# Note: Setting this parameter too low will may reduce the
# system performance and stability.
#
# unit: seconds
# default: 20
#
cycle = 20
# usecorrelation:
#
# Whether correlation coefficient should be used in the prediction
# algorithm. There are arguments both for and against using it.
# Currently it’s believed that using it results in more accurate
# prediction. The option may be removed in the future.
#
# default: true
usecorrelation = true
# minsize:
#
# Minimum sum of the length of maps of the process for
# preload to consider tracking the application.
#
# Note: Setting this parameter too high will make preload less
# effective, while setting it too low will make it eat
# quadratically more resources, as it tracks more processes.
#
# unit: bytes
# default: 2000000
#
minsize = 2000000
#
# The following control how much memory preload is allowed to use
# for preloading in each cycle. All values are percentages and are
# clamped to -100 to 100.
#
# The total memory preload uses for prefetching is then computed using
# the following formulae:
#
# max (0, TOTAL * memtotal + FREE * memfree) + CHACED * memcached
# where TOTAL, FREE, and CACHED are the respective values read at
# runtime from /proc/meminfo.
#
# memtotal: precentage of total memory
#
# unit: signed_integer_percent
# default: -10
#
memtotal = -10
# memfree: precentage of free memory
#
# unit: signed_integer_percent
# default: 100
#
memfree = 100
# memcached: precentage of cached memory
#
# unit: signed_integer_percent
# default: 30
#
memcached = 30
###########################################################################
[system]
# doscan:
#
# Whether preload should monitor running processes and update its
# model state. Normally you do want that, that’s all preload is
# about, but you may temporarily want to turn it off for various
# reasons like testing and only make predictions. Note that if
# scanning is off, predictions are made based on whatever processes
# have been running when preload started and the list of running
# processes is not updated at all.
#
# default: true
doscan = true
# dopredict:
#
# Whether preload should make prediction and prefetch anything off
# the disk. Quite like doscan, you normally want that, that’s the
# other half of what preload is about, but you may temporarily want
# to turn it off, to only train the model for example. Note that
# this allows you to turn scan/predict or or off on the fly, by
# modifying the config file and signalling the daemon.
#
# default: true
dopredict = true
# autosave:
#
# Preload will automatically save the state to disk every
# autosave period. This is only relevant if doscan is set to true.
# Note that some janitory work on the model, like removing entries
# for files that no longer exist happen at state save time. So,
# turning off autosave completely is not advised.
#
# unit: seconds
# default: 3600
#
autosave = 3600
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It’s advised to make sure /dev is rejected, since
# preload doesn’t special-handle device files internally.
#
# default: (empty list, accept all)
mapprefix = /usr;/lib;!/
# exeprefix:
#
# The syntax for this is exactly the same as for mapprefix. The only
# difference is that this is used to accept or reject binary exectuable
# files instead of maps.
#
# default: (empty list, accept all)
exeprefix = !/usr/sbin;!/usr/local/sbin;/usr;!/
如果你更改了配置,你需要重启 Preload :
sudo /etc/init.d/preload restart
本文来自:http://huzuofeiwei.com/2009/07/speed-up-your-system-with-preload-on-ubuntu-904.html
发表评论
-
解决 is not in the sudoers file this incident will be reported ubuntu
2016-02-25 14:03 2140该问题必须在Ubuntu的恢复模式下解决,具体步骤如下: 1 ... -
Ubuntu常用命令大全
2013-01-30 14:42 1707查看软件xxx安装内容 #dpkg -L xxx 查找软件 ... -
Ubuntu快捷键
2011-10-12 14:05 2686Alt + F1 类似Windows下的Win键,在GNOME ... -
ubuntu安装sqlite3
2011-05-01 18:16 2161sudo apt-get install sqlite3 li ... -
Ubuntu 安装java6, tomcat7, eclipse3.6
2011-05-01 18:13 30471.安装sun-java6 在Ubuntu10.04中不再是默 ... -
32位Ubuntu中支持超过4G的大内存的方法
2010-12-17 15:15 625732位Ubuntu10.10最大支持的 ... -
Linux 常用命令
2010-12-06 11:24 1311NO 分类 PS1 命令名 用法及参数 功 ... -
linux 查看IP
2010-12-01 13:35 5351终端输入: ifconfig(ifconfig -a是显示全部 ... -
如何让ubuntu系统加速
2010-11-25 17:14 5452linux的各大发行版,都 ... -
Ubuntu(Linux)下的整站下载工具
2010-11-25 16:39 5963在windows下面,我们可以利用Teleport Pro下载 ... -
Ubuntu Linux 关机、重启、注销 命令
2010-11-19 17:54 26831关机命令 shutdown 好像ubuntu的终端中默 ... -
Ubuntu状态栏面板栏不显示的解决办法
2010-11-19 17:53 54681)开一个终端窗口。如果面板不可用,可以鼠标右键点击桌面,菜单 ... -
致命的 Linux 命令
2010-11-19 16:09 1348以下是致命的 Linux 命令,轻则使你的数据造成丢失,重则使 ... -
Ubuntu下安装jdk6的方法和步骤
2010-11-19 15:50 11117unbuntu10下默认是安装了o ... -
ubuntu 设置文件权限
2010-11-18 11:39 1403命令行下输入: sudo chmod 777 </到达该 ... -
Ubuntu下查看CPU的温度
2010-11-17 16:58 4653Ubuntu下查看CPU的温度的步骤,以下所有步骤,如果有ye ... -
Ubuntu输入法安装
2010-11-17 15:53 11411.安装SCIM输入法平台 apt-get install s ... -
Ubuntu 安装微软雅黑字体
2010-11-17 15:39 2412装了一个英文的Ubuntu10,然后装上中文输入法,然后发现U ...
相关推荐
preload
演示使用vue-ssr-boilerplate安装npm install vue-link-preload --save用法import从'vue-link-preload'预加载Vue.use(Preload)//动态添加单个项目//默认情况下为'script'类型被分配了Vue.addPreloadLink('...
preload 顾名思义就是一种预加载的方式,它通过声明向浏览器声明一个需要提交加载的资源,当资源真正被使用的时候立即执行,就无需等待网络的消耗
如何使用 preload 使用 link 标签创建 <!-- 使用 link 标签静态标记需要预加载的资源 --> <link rel="preload" href="/path/to/style.css" rel="external nofollow" as="style"> <!-- 或使用脚本...
用于seajs的预加载使用,有需要的小伙伴可以免费下载使用。方便大家多多分享免费的资源,有问题随时给我们留言。希望能帮助大家解决更多的问题
在Linux操作系统中,利用PRELOAD技术,监控应用层,使用了哪些文件,并利用现有工具验证分析
安卓挂钩子 hook技术 详细讲解了如何挂钩android api
图片预加载插件。包含有序加载和无序加载两种。具体使用方法,参考https://blog.csdn.net/yang1393214887/article/details/92582715
针对文件系统日渐显著的复杂性,提出要对复杂文件系统进行管理以优化应用程序对文件系统的访问,改善文件系统的性能,基于LD-PRELOAD技术设计并实现了一种用于文件管理系统的轻量级方法,并阐述和分析了该方法的关键...
ELS-N04_hw_la_R2-C605_PRELOAD-10.1.0.1_ReleaseNotes
PreLoad 一个图像预加载插件以实现有序加载和无序加载
最近根据使用发现,在ubuntu下,安装sublime Text 3 后,无法使用中文输入的问题。 系统为:ubuntu 64位,安装搜狗输入法linux版 解决方法: 1.下载共享库 点击下载 libsublime-imfix.so 2.下载好库后,进入目录...
linux 如何hook 任何一个目标文件中 使用的 第一层函数。在没有目标源码的情形下。对目标进行hook、 亲测,可以用
该模块使用Electron 2.xx中引入的 API,它不适用于较早的发行版! addPreloadWithParams(modulePath, exportName[, params, session]) 范围 类型 描述 默认 modulePath 细绳 要在预加载中加载的文件的路径 export...
LD PRELOAD实用程序
它的工作原理是拦截对getaddrinfo的调用,由于依赖于A / AAAA记录,该调用通常会失败,并使用SRV代替带下划线前缀的名称。 编译时先决条件 (建议稳定,但不是必需的) 建造 cargo build 现在, target/debug/...
UI5预加载使用 Gulp 为 OPENUI5/SAPUI5 构建 Component-preload.js。 预加载仅组合您想要的文件(主页、搜索、登录页面等),因此您可以使更大的应用程序依赖于初始加载。 请相应地配置 gulpfile(视图目录、预加载...
使用Go LD_PRELOAD libc挂钩 这是在共享库中使用Go封装libc函数并启动TCP服务器(“后门”)的实验,该服务器允许从客户端(如telnet或netcat)运行任意命令。 这是一款用于教育目的的玩具,可演示Go的某些功能。 ...