Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSDs and HDs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
crashoverride025
n00b
n00b


Joined: 07 Feb 2005
Posts: 31
Location: Elon, NC USA

PostPosted: Sun Jul 03, 2011 8:46 am    Post subject: SSDs and HDs Reply with quote

I have a mixture of SSD harddrives and the types that spin. Is there a way, with linux, that I can setup the SSD to be a caching/immediate access drive and the HDDs to be more for archiving? The caching policy that I would want would be for the SSD to hold new files, and frequently used files.

I'm not really looking for the SSD to increase my storage, just to provide an immediate access device. Also, the files modified on the SSD should be considered to be a modified file.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9334

PostPosted: Sun Jul 03, 2011 9:39 am    Post subject: Reply with quote

None that I know of. Something like this would need to work as some kind of RAID mode, hiding the actual cache drive from the system.

Intel has done that with its Z68 chipset, they introduced 'Smart Response Technology'.
My Seagate Momentus XT also uses 4GB integrated SLC memory as an OS agnostic file access cache.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Sun Jul 03, 2011 11:07 am    Post subject: Re: SSDs and HDs Reply with quote

crashoverride025 wrote:
I have a mixture of SSD harddrives and the types that spin. Is there a way, with linux, that I can setup the SSD to be a caching/immediate access drive and the HDDs to be more for archiving? The caching policy that I would want would be for the SSD to hold new files, and frequently used files.

I'm not really looking for the SSD to increase my storage, just to provide an immediate access device. Also, the files modified on the SSD should be considered to be a modified file.


how about smart resource ordering? for example, /var, /usr/bin and /usr/portage on a raid of only SSD and the rest on a raid of mechanical?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9334

PostPosted: Sun Jul 03, 2011 11:11 am    Post subject: Reply with quote

The additional wear caused by the portage tree might not be worth the better speed just for updates.

I would at least put also /etc on an SSD, /boot might also subtract some fractions of a second from the same-titled process.

It all depends on the size of your SSD, for expensive small SLC drives our mentioned strategy would be fine, for cheaper, bigger MLC drives I would go for the include everything, outsource stupid storage locations approach. /usr/portage(/distfiles) and /usr/src come to mind immediately, also intelligently organize your /home directory so that you can 'mount -o bind' sparsely used locations to the HDD, but keep /home/<user> on the SSD itself to have much boosted startup times of your favourite DE moloch (e.g. KDE has a huge hidden directory there).
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Mon Jul 04, 2011 10:22 am    Post subject: Reply with quote

Isn't there a framework that was semi-recently added to the kernel for doing this sort of thing?
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Jul 04, 2011 10:39 am    Post subject: Reply with quote

Well, I cannot tell how to achieve this in a filesystem independent manner.

What I can tell is that, if you are open to zfs, zfs allows exactly what you are looking for thanks to the L2ARC feature.
This speeded up my freeBSD (zfs native) system dramatically.
http://blogs.oracle.com/brendan/entry/test

So, if you are open to fuse or beta linux native zfs... do not hesitate.
I believe it should work but I did not actually test under my ext-only Gentoo-Linux.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Jul 06, 2011 1:45 am    Post subject: Reply with quote

There is flashcache.

https://github.com/facebook/flashcache

I have an ebuild for the git repository in my overlay.

https://github.com/drescherjm/jmdgentoooverlay/blob/master/sys-fs/flashcache/flashcache-9999.ebuild
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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