On Solaris /tmp is mounted swapfs and is it correct to put the eaccelerator files into /tmp/eaccelerator. You will have to remake the directory after a reboot.
In linux tmpfs can be used in the same way, either on /tmp or elsewhere.
See: http://www-128.ibm.com/developerworks/library/l-fs3.html
My updated task is now.
On Ubuntu:
mkdir /var/tmp/eaccelerator
sudo chown www-data.www-data /var/tmp/eaccelerator
sudo mount -t tmpfs tmpfs /var/tmp/eaccelerator
In your php.ini, change this line to:
eaccelerator.cache_dir="/var/tmp/eaccelerator"
Now put it in your /etc/fstab:
tmpfs /var/tmp/eaccelerator tmpfs defaults 0 0
And restart Apache:
sudo /etc/init.d/apache2 restart
You now don't have to recreate the /var/tmp/eaccelerator directory after the reboot, and the tmpfs will automount.
If you are VERY clever, then you might copy the cached files off of the tmpfs when apache stops and copy the cached files back on when apache starts.
While tuning this I got a %75 decrease of page time and %80 decrease of memory usage. (I also had a database issue from the old perspective.php script)
My courses page takes 0.368522 secs and RAM: 3.9MB
Your milage may vary,
Mikel
From: http://moodle.org/mod/forum/discuss.php?d=63034
分享到:
相关推荐
tmpfs是Linux/Unix系统上的一种基于内存的文件系统。tmpfs可以使用您的内存或swap分区来存储文件。由此可见,tmpfs主要存储 暂存的文件。 优势 : 1、 动态文件系统的大小。 2、tmpfs 的另一个主要的好处...
A memory filesystem on Linux.
tmpfs 是 Linux/Unix 系统上的一种基于内存的文件系统,即 tmpfs 使用内存或 swap 分区来存储文件。 Linux 内核中的 VM 子系统负责在后台管理虚拟内存资源 Virtual Memory,即 RAM 和 swap 资源,透明地将 RAM 页...
学会使用tmpfs文件系统来提速你的linux系统.docx
Linux磁盘扩容 df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 197G 2.3G 195G 2% / devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 8.5M 7.8G 1% /run tmpfs...
本人安装成功的记录 1.官网(http://www.tinycorelinux.net)下载带硬盘安装最新版的 CorePlus-current.iso (约84MB),据说有VMware的...tmpfs 250.3M 0 250.3M 0% /dev/shm /dev/sda1 7.7G 50.8M 7.7G 1% /mnt/sda1
阅读本文前,希望你已经对...如果你使用linux运行Docker,那么避免写入数据到容器存储层还有一个方案:tmpfs mounts。 tmpfs mounts,顾名思义,是一种非持久化的数据存储。它仅仅将数据保存在宿主机的内存中,一旦
linux下命令和文件及目录名都分大小写 //移动文件 mv .*.swp 123.bak //看性能 top //shift键+"m"是按"memory"排序 //查看环境变量 env //浏览文件和目录 ls//列表; ll//详细列表 //查看当前目录 pwd //创建...
booty是复杂的脚本,用于创建可引导的GNU / Linux映像。 快速开始 # make install # booty build DIRECTORY/ # qemu-system-x86_64 -cdrom BOOT-x86_64.ISO 界面 战利品 战利品Linux 战利品ramdisk 战利品形象 战...
在使用CentOS6.3版本Linux系统的时候,发现根目录(/)的空间不是很充足,而其他目录空间有很大的空闲,所以本文主要是针对现在已有的空间进行调整。首先,先来查看一下系统的空间分配情况: [root@CentOS-78 /]# df ...
Android 系统 Linux系统 内核kernel启动流程 init 进程介绍,init进程初始化,内核启动三个阶段深入浅出介绍,简单易懂 。kernel_init() 函数介绍,ramdisk_execute_command,execute_command /sbin/init,/etc/init,...
Arch-Linux-个人收藏我的 eeepc 1011px 个人 Arch Linux 调整集随处可见(ArchWiki 和一般的网络......) 在 RAM 中挂载 /tmp /var/log 和 /var/tmp 并在 tmpfs 中移动 Chromium/Chrome 缓存(在 ram 上减少高清磨损...
文章介绍一种保障Linux的临时文件安全的方法,感性趣的朋友可以看看。
介绍在嵌入式Linux 环境中搭建文件系统的一些方法, 主要讲述在基于Flash 存储器的系统中如 何合理使用Cramfs、JFFS2 和Tmpfs 等文件系统,以便有效地使用嵌入式系统中有限的存储空间。 本文介绍的一些方法在笔者的...
mysql5.6.28安装配置方法 1.系统基本信息查看,尝试yum安装 $ sudo -s # df -lh Filesystem Size Used Avail Use% Mounted on /dev/vda1 79G 1.6G 74G 3% / ...Linux nj01 3.16.0-34-generic #47~
这允许我们从外部维护的 rootfs 引导,该 rootfs 从给定的 URL 加载,并将此 rootfs 安装在 tmpfs (RAM) 或 KVM (/dev/vda) 块设备上。 设置 rootfs,挂载所需的伪文件系统并在新根上调用 /bin/switch_root。 请...
Linux中du-查看文件夹大小并按大小进行排序详解 某天,我想检查一下电脑硬盘的的使用情况,作为一个命令控,废话少说,开始吧: 使用df 命令查看当前磁盘使用情况: jack@jiaobuchong:~$ df -lh Filesystem Size ...
前言 最近这两天登陆服务器,发现用 wget 下载文件的时候提示“No space left on device”,而且连使用 tab 键进行补全时也会提示该错误。 之前遇到过一次这种问题,是由于磁盘空间被占...tmpfs 101M 232K 100M 1% /run
一、上传ISO文件 1、打开存储器 2、创建一个专门存放ISO文件夹 3、上传ISO 二、虚拟机CD/DVD挂载ISO文件 1、编辑设置 2、挂载前 ...[root@localhost ~]# df -HT Filesystem Type Size Used Avail Use% Mounted...tmpfs