关于SSD硬盘的分区

76 views
Skip to first unread message

Jade.Shan

unread,
Apr 18, 2014, 1:39:50 AM4/18/14
to sh...@googlegroups.com
大家好,今天到手了一块佰维 Biwin 128G NGFF SSD固态硬盘。想请教一下有没有必要
单独把 /var 与 /home 这样的分区放到机械硬盘上?主要是考虑使用寿命的问题。

谢谢。

--
CAFE BABE

Yang Fan

unread,
Apr 18, 2014, 1:53:49 AM4/18/14
to sh...@googlegroups.com
于是SSD带来的加速又没享受到。。。



--
CAFE BABE

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--
Regards,
Fan Yang

DaboD

unread,
Apr 18, 2014, 2:16:21 AM4/18/14
to sh...@googlegroups.com
我的 SSD 只有小小的 22G, 切兩塊, 一塊安裝系統, 一塊放 zfs 的 L2ARC (加速讀) 及 log (加速寫), 優化放在 HDD 上資料的存取.

none_nobody

unread,
Apr 18, 2014, 2:18:04 AM4/18/14
to sh...@googlegroups.com
/var/log 放 tmpfs 吧


On Friday, April 18, 2014 1:39:50 PM UTC+8, Jade Shan wrote:

Jade.Shan

unread,
Apr 18, 2014, 3:23:52 AM4/18/14
to sh...@googlegroups.com
那是不是说ZFS比较适合作为SSD格式?和ext4会有较少的损耗么?

On Thu, Apr 17, 2014 at 11:16:21PM -0700, DaboD wrote:
> 我的 SSD 只有小小的 22G, 切兩塊, 一塊安裝系統, 一塊放 zfs 的 L2ARC (加速讀) 及
> log (加速寫), 優化放在 HDD 上資料的存取.
>

--
CAFE BABE

SuperCat

unread,
Apr 18, 2014, 5:13:17 AM4/18/14
to sh...@googlegroups.com
Intel 520 240G路过,俺是给/ 36G左右,然后剩下给/home,当然还有一个256M左右的EFI分区
挂ext4的时候建议加上noatime,nodiratime参数来减少访问文件时对文件系统的写入,当然有可能会影响mutt这样的程序,如果不用这种东西的话就放心加上好了
然后定期用fstrim程序手动TRIM一下SSD就行了


--
CAFE BABE

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---

Jade.Shan

unread,
Apr 18, 2014, 9:55:35 AM4/18/14
to sh...@googlegroups.com
谢谢老喵童鞋指点,那对于SSD所谓的“4K对齐”有什么要注意的地方么?

On Fri, Apr 18, 2014 at 05:13:17PM +0800, SuperCat wrote:
> Intel 520 240G路过,俺是给/ 36G左右,然后剩下给/home,当然还有一个256M左右的EFI
> 分区
> 挂ext4的时候建议加上noatime,nodiratime参数来减少访问文件时对文件系统的写入,当
> 然有可能会影响mutt这样的程序,如果不用这种东西的话就放心加上好了
> 然后定期用fstrim程序手动TRIM一下SSD就行了
>
>

--
CAFE BABE

DaboD

unread,
Apr 18, 2014, 10:07:47 AM4/18/14
to sh...@googlegroups.com
忘了說, 在 SSD 上的 root file system 是 ext4, 因為 zfsonlinux 還沒加上 trim 的功能.

Xi Shen

unread,
Apr 19, 2014, 12:08:55 AM4/19/14
to Shanghai Linux User Group .
分区的时候选择对齐到柱面(cylinder)就可以了。


--
CAFE BABE

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Jade.Shan

unread,
Apr 21, 2014, 10:30:39 PM4/21/14
to sh...@googlegroups.com
现在我还是把/home放到了SSD上,然后把一些读写频繁但对速度不敏感的目录
做成了到机械硬盘上的符号链接。比如:offlineimap的邮件同步目录等。

但我记得符号连接好像是不能跨分区的,难道是我记错了?

Grissiom

unread,
Apr 21, 2014, 10:40:16 PM4/21/14
to sh...@googlegroups.com
2014-04-22 10:30 GMT+08:00 Jade.Shan <evoker...@gmail.com>:
现在我还是把/home放到了SSD上,然后把一些读写频繁但对速度不敏感的目录
做成了到机械硬盘上的符号链接。比如:offlineimap的邮件同步目录等。

但我记得符号连接好像是不能跨分区的,难道是我记错了?


硬链接不能跨文件系统
 

On Fri, Apr 18, 2014 at 05:13:17PM +0800, SuperCat wrote:
> Intel 520 240G路过,俺是给/ 36G左右,然后剩下给/home,当然还有一个256M左右的EFI
> 分区
> 挂ext4的时候建议加上noatime,nodiratime参数来减少访问文件时对文件系统的写入,当
> 然有可能会影响mutt这样的程序,如果不用这种东西的话就放心加上好了
> 然后定期用fstrim程序手动TRIM一下SSD就行了

--
CAFE BABE

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--
Cheers,
Grissiom

依云

unread,
Apr 23, 2014, 11:35:11 PM4/23/14
to sh...@googlegroups.com
On Thu, Apr 17, 2014 at 11:18:04PM -0700, none_nobody wrote:
> /var/log 放 tmpfs 吧

于是:

1. 查不到以前的日志了;
2. 哪个程序出问题或者使用调试模式写很多日志之后,内存不够用了。

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

none_nobody

unread,
Apr 24, 2014, 12:08:24 AM4/24/14
to sh...@googlegroups.com
syslog 可以到远程的。
每天都关机的情况下。

如果调试日志写爆内存的话,那也查不出什么来,又何必呢?
要是自己写的代码,那我只能呵呵了。

依云

unread,
Apr 25, 2014, 4:12:37 AM4/25/14
to sh...@googlegroups.com
On Wed, Apr 23, 2014 at 09:08:24PM -0700, none_nobody wrote:
> syslog 可以到远程的。
> 每天都关机的情况下。

没看明白这其中的关联。

> 如果调试日志写爆内存的话,那也查不出什么来,又何必呢?
> 要是自己写的代码,那我只能呵呵了。

为什么会「查不出什么来」呢?知道要找的地方的特征的话,就算上 G 的日志也
很容易处理的。调试的时候有时会出现这种事情:当你能够判断某个地方出问题的
时候,实际上很早很早之前就已经有问题了,要先找到能够判断已经出问题的地方,
然后往回查阅相关日志来诊断。当然自己的程序可以叫它别发 syslog。不过像
dnsmasq、PostgreSQL 之类的服务的调试日志挺巨大的。

> On Thursday, April 24, 2014 11:35:11 AM UTC+8, 依云 wrote:
> >
> > On Thu, Apr 17, 2014 at 11:18:04PM -0700, none_nobody wrote:
> > > /var/log 放 tmpfs 吧
> >
> > 于是:
> >
> > 1. 查不到以前的日志了;
> > 2. 哪个程序出问题或者使用调试模式写很多日志之后,内存不够用了。

Reply all
Reply to author
Forward
0 new messages