How should a SSD cache be partitioned upon installation?

I know there are various wiki pages for creating a bcache, but none of them seem to go into detail about how they should initially be partitioned.
In my case, lsblk shows an sda partition (1 and 2) which is my live USB stick, a sdb partition which is my SSD cache, and a sdc (1 and 2) which is my machines main HD partition.
Do I need to clean my SSD partition or should I just leave it alone? The wikis don't seem to address the situation as if the user has yet to install arch yet.

vixsomnis wrote:If you're still stuck on this, use $(wipefs -a /dev/sdbX) on the partition, then use $(make-bcache --wipe-bcache -C /dev/sdbX). There's nothing in the wiki about this, but the tool itself provides some help when it encounters an error.
Alternatively, you could try to use the Security Erase feature of the SSD if it supports it.  This will effectively zero out the entire drive.  Then you can go back and try getting bcache working again and not have to worry about lingering superblocks from old filesystems.
https://wiki.archlinux.org/index.php/SS … l_clearing
I like to use this when I need to clear out an SSD because it tends to be super fast.  It is also amazingly easy to use as well (you just need hdparm).

Similar Messages

  • How To Format My XP Bootcamp Partition.  Help!

    Could anyone tell me how to reformat my bootcamp xp partition during installation? I have chosen a Fat32 24 Gig partition for XP and I am confronted time and again with a Disk Error - even though the disk is brand new and has been used on one other computer.

    Hi there!
    If it is an OEM disc as compared to a retail version, it will only work on one computer, not one at a time, but on only one machine. Is it an OEM disc?

  • I would like to be able to optimize my cc installation.  I am using a ssd card as my primary hard drive on a windows 8.1 machine with 32 gigs of memory.  I have additional spinner hard drives in this machine.  Everything is SATA 2 or 3.  How should I inst

    I would like to be able to optimize my cc installation.  I am using a 500 GB ssd card as my primary hard drive on a windows 8.1 machine with 32 gigs of memory.  I have additional spinner hard drives in this machine.  Everything is SATA 2 or 3.  How should I install the product to best utilize my hardware assets (Program Installation Drive; Scratch Drive; Temporary storage drive etc.).

    Barcode1 I would recommend you install the Adobe Creative applications included with your membership to your Primary hard drive which contains your operating system.  For questions on how to optimize specific settings such as scratch disks I would recommend posting in the relevant point product forum.  You can find a list of available forums at https://forums.adobe.com/welcome.

  • E540 SSD caching - how to make it work

    Hello. Does anyone know how can I rebuild E540 SSD caching? The problem is, that I formatted the whole notebook (1TB HDD + 16 GB SSD) and now after fresh install of Windows 8.1 it doesn't seem to use the 16 GB SSD as cache. I installed Intel Rapid Storage, but I can't install Intel Smart Response (which seems to do the SSD-caching) because it needs the RAID to be enable in BIOS but I don't have such an option. Any idea how to make it work?
    Thanks in advance!

    ColonelONeill wrote:
    I think you need the ExpressCache package.
    Well that seems to do the trick. The quiestion is  - why? On lenovo expresscache download page (http://support.lenovo.com/en/downloads/ds035460) my model (E540) isn't listed in the supported models. That's why I didn't even try it. Although I was considering this until I saw, that my model is not supported.

  • How large should I make the Windows partition in Bootcamp?

    I've just taken delivery of a shiny new 17" Macbook Pro and I am planning to install Windows 7 on it and run SolidWorks 2010 as well as all the Mac side stuff (Adobe CS4, vectorWorks etc). The question I have is what do the experts here think I should set as the Windows partition size? I have a 500GB drive to work with.
    Also, is it best practise to separate Windows files (eg the SolidWorks files) and the Mac files? Should I aim to have all the Windows native app files on the Windows partition or is it OK to mix and match (ie keep everything on the Mac side and access them from Windows)?

    right. I've installed both the 64bit and 32bit versions of Windows 7 and Office 2010 CPP (plus all OS/driver updates from Windows Update as well as other necessary apps (like anti-virus, DropBox, 2GB of personal data)) on a 60GB BC partition and wound up with about 43GB free. I'm not sure what everyone else is installing but you do NOT need a huge partition/drive for Windows 7. 60GB will do you just fine (and believe it or not, Windows is my default OS. I use Snow Leopard for iTunes, Photos (all multimedia), web cam/skype, and have the lion share of my 500GB drive allocated to OSX.
    Things are working very well with this configuration.

  • How to clear class cache upon applet startup?

    Hi,
    is there any HTML-tag to force the class loader cache being cleared upon applet startup?
    When I have recompiled the applet code, I am forced to clear the cache in the java plugin console. Is there any way to automate this?
    Thanx in advance

    i know what he's talking about, you have to restart the browser to get it to reload the class files. You may be able to set your browser cache to 1MB, but I think I did that and it didnt work, and I never found a solution. If you're trying to develop your application and you're testing it and this is becoming a problem, use appletviewer to test the applet. Once you have the finished product, make sure it works on IE and Netscape.

  • SSD Cache in HP ENVY Phoenix 800-445qe doesn't seem to be installed right

    I have a newly purchased HP ENVY Phoenix 800-445qe which includes what's supposed to be a 16gb ssd cache.  Running WIndows 7 Pro 64.  
    The ssd drive was factory installed so it shows in Windows as with the name DATADRIVE1 (doesn't sound like it was intended as a cache, does it?) and it shows as drive E:. My understanding is that if it were really installed as a cache, it wouldn't be showing as a drive in Windows Explorer.
    The HDD was set as ACHI in BIOS, not RAID.  The Intel RST screen in firmware (accessable through Ctrl-I) shows both drives as non-RAID Disks.  The HP support assistant shows the Intel RST x 64 driver v 13.2.0.1016 installed. 
    Elsewhere on the HP site is a support article with the title: A Seondary 16 GB Drive Shows up in Windows 8 File Explorer, which is the problem I'm having except, I have Win 7, not 8; it says to download a softpaq with release notes that say it only applies to HP ENVY HP-8 systems and requires Win 8; it's fix is to install Condusiv ExpressCache, which I'm under the impression is an alternative to Intel's RST, not something that works with it.  So that doesn't seem to be the fix I'm looking for.  HP Tech Support's helpful suggestion was to find a local computer dealer an pay them to fix it. (Yeah, right.)
    Does anybody here know how to get this thing working?

    There ain't no such thing in the Control Panel.  *sigh*  
    Let me jump off in a very different direction, because as this point I've probably wasted more time on this than the cache can ever save me over the life of the system....
    I have a 128GB SSD on order that I was going to install as my data drive, and then keep it backed up on a partition on the HDD.  That's almost twice as large as my OS+Programs partition on my current XP machine.  I'm thinking maybe I should bail on the whole cache thing, install the 128GB drive as my OS+Programs drive, and set up the 16 GBs as a data drive (since it seems to be set up that way already anyway.  That's a little small, but I can make it work if I move older data files to the HDD as a kind of near line storage.
    Unless you know of a reason I can't do that--like the mSATA SSD won't work as a drive--the question then becomes, how do I set up the 128GB SSD as the OS drive?  I see two possibilities:
    The first would be to use the HP restore image function to initialize the SSD, so it has the EFI partition with the Boot information, and then use Norton Ghost to restore the Ghost image I've created from my now customized Drive C (removing bloatware etc) to the new SSD.  
    The second--which could be a lot easier-- would be to make a ghost image of the entire drive of the current HDD and then use Ghost to restore the image to the 128GB SSD. 
    Do you know if either or both of these approaches will work?

  • GUIDE Install ExpressCache for SSD Caching

    After purchasing a M5-481T as well as setting up a M5-581T, I wanted to be able to reproduce the factory SSD caching for these models. They both come with 20GB SSD's that are used for both Intel's Rapid Start technology as well as Diskeepers ExpressCache. After quite a bit of research, I became underwhelemed with Acer's support and provided downloads. While setting up these laptops, I did create the Drivers and Applications DVD's before blowing away the default build. These did not contain the ExpressCache software, nor did the download website. I even called Acer asking for support and I was told that with these models, the SSD drives are not used for caching only for the Rapid Start. The technican I spoke with was adamant about this. To make a long journey short, I was able to figure out how to replicate the default SSD caching in addition to the Rapid Start that comes on the default build of these devices. This should be handy for people that are trying to do clean installs for various reasons. The key to this is to have the ExpressCache software from the default build. The software is licensed to the OEM system builders and without it the software doesn't work. Fortunately for us, if you have the files then your golden. This proves quite difficult when Acer doesn't provide the software to download. Two key items are needed for the ExpressCache install. The software from a different Vendor, and the files from the default system build. I have provided them for you at the following links: ExpressCache Install: http://depositfiles.com/files/l73q0rizhExpressCache Acer Files: http://depositfiles.com/files/68vvduipq Hopefully if you have made it this far, you don't need a guide on how to install software. The idea is simple:1.) Install the Software using the installer from the ExpressCache Install link above. Don't worry if you get a message that says that it couldn't detect the SSD Drive to use. We will fix this later. Don't reboot when prompted to do so.2.) Use the files in the ExpressCache Acer Files download link above to overwrite the ones that were created during the installation in step 1. (copy everything in that download the the program files folder) The location is: C:\Program Files\Condusiv Technologies\ExpressCache\. Once this is done, you may restart the computer.*3.) If you happen to have restarted before completing step 2 above, all you have to do is stop the ExpressCache service and then do step 2. Start the service back up when completed. Now that the ExpressCache software is installed, we need to make a decision. Do you want to use Intel Rapid Start? If you don't care about Rapid Start, the process is much easier. If you do, then go down to the Rapid Start with ExpressCache Instructions. ExpressCache Only: 1.) Open an elevated command prompt and type diskpart.2.) type "list disk" (note the drive number of the SSD).3.) type "select disk n" (n= the drive number found above)4.) type "clean"5.) type "exit"6.) Now that you are back to the normal command prompt, lets navigate to the ExpressCache directory. Do this by typing "cd C:\Program Files\Condusiv Technologies\ExpressCache\"7.) type "ECCmd -partition" (this tells ExpressCache to use the whole SSD drive)8.) Your DONE! to confirm that it is working, you can type "ECCmd -info" and ensure that it starts showing you some caching statistics. Intel Rapid Start with ExpressCache: 1.) Open an elevated command prompt and type diskpart.2.) type "list disk" (note the drive number of the SSD).3.) type "select disk n" (n= the drive number found above)4.) type "clean"5.) type "create partition primary size=NNNN" (NNNN= the amount of memory you have in your system. So if you have 6GB's of RAM, replace NNNN with 6000)6.) type "detail disk" (Note the volume number of the partition that you created in step 5)7.) type "select Volume M" (Replace M with the volume number from the previous step)8.) type "set id=84 override"9.) type "exit"10.) The above steps created a hibernation partition on the SSD drive approximately equal to your RAM. Before you can Install Rapid Start, you will need to reboot the computer or else it will not install. You can do this now or after you setup ExpressCache.11.) Installation of Intel Rapid Start is straight forward. Just download it from the Intel web site and install it. You can also refer to the Rapid Start User guide for the above steps as well as how to configure Rapid Start: Intel Rapid Start (as of 3/21/13): http://downloadcenter.intel.com/confirm.aspx?httpDown=http://downloadmirror.intel.com/21612/eng/Rapid_Start_Win7_2.1.0.1002.exe&lang=eng&Dwnldid=21612&DownloadType=%0a%09%09%09%09%09%09%09Drivers%0a%09%09%09%09%09%09&OSFullname=Windows+8%2c+64-bit*Intel Rapid Start User guide: http://download.intel.com/support/motherboards/desktop/sb/rapid_start_technology_user_guide.pdf 12.) Now we will setup ExpressCache. Its a little trickier now that we are using Rapid Start.13.) Figure out how much free space you have on the SSD now that the Hibernation partition is created. You need the value in MB. So for example, if you created a hibernation partition of 6000, and the total drive size is 20480, then you have 14480MB left. You can get this information easily in Disk Management (diskmgmt.msc) by right clicking the SSD drive and selecting Properties. Then go to the Volumes tab. Remember this value for later.14.) If your elevated command prompt is not still open, open it now.15.) Navigate to the ExpressCache directory. Do this by typing "cd C:\Program Files\Condusiv Technologies\ExpressCache\"16.) type "ECCmd -partition X YYYYY" (X is the drive ID and YYYYY is the partition size you wish to create for ExpressCache. In other words, replace X with the drive ID from step 2 and YYYYY with the free space from step 13)17.) Your DONE! To confirm that it is working, you can type "ECCmd -info" and ensure that it starts showing you some caching statistics.  This procedure took me quite some time to figure out and to also get written up. Hopefully you guys find this useful and can benefit from my work. Please also let me know if you run into any issues. Thanks!

    As promised, I'm reporting back on my venture - trying to install Intel Smart Response Technology + Intel Rapid Start, but it's not working and I made it work    I have tested, and both technologies are working in tandem, which brings me back to the question: why did Acer spend money on 3rd party software, instead of using Intel's? Anyway.... This is the recipe:Clean all partition in the SSD and the HDD.Install Windows7 on the HDDInstall Chipset INF file and video driver ( not necessary, just to speed up the system )Install Intel Rapid Storage and enable Acceleration ( Intel guide here )Create the hibernation partition on the SSD and REBOOT ( required by Intel Rapid Start, from first post or here )Install Intel Rapid Start Technology softwareI didn't measure the boot time with ExpressCache, but on my experience, the Windows boot is faster with Intel Smart Response. Some notes:I'm able to use the latest drivers from Intel website to theChipset ( 9.4.0.1026 )VGA ( 8.15.10.2712 )Rapid Start ( 3.0.0.1053 )But not for the Rapid StorageTechnology. My Windows 7 64 bits PRO would get stuck on the boot logo animation if I used the latest version ( 12.9 ), it only worked using version 11.7.0.1013 ( link ). Since the Hibernation partition has 3.77GB, and the laptop has 4GB, I can't predict what will happen in the situtation your laptop is using more RAM than the partition has.On my research, I think this wouldn`t be a problem because I have seen on other forums people advising others to use 80% of the system physical RAM to the hibernation file. Regards,HalfBit.

  • SSD Cache Not Working U840 after Clean Install Intel Smart Response Technology

    Hello, I completed a clean install of Windows 8 on my ultrabook model U840 (Core i3, 16GB SSD).  I would appreciate any advice to get the SSD to use the Intel Smart Response Technology (SRT) for SSD Cache.
    I used the Intel Rapid Storage Technology (RST) driver during install and after installing Windows 8 but I do not recieve the option to Accelerate the SSD drive.  I followed the instructions and links contained in this Toshiba Forum post: http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=277914
    The computer is supported for Windows 8 upgrade and clean install drivers are available at Toshiba: http://support.toshiba-tie.co.jp/windows8/drivers_cae.htm
    The BIOS is set to default for the drives (Performance). Any advice is appreciated.  Thanks.
    - Red
    Solved!
    Go to Solution.

    If anyone stumbles upon this problem in 2015, i have detailed my solution here
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=81644&tstart=0
    I used a somewhat abbreviated version of this guide myslef, and did have some trial and errors
    http://download.intel.com/support/motherboards/desktop/sb/rapid_start_technology_user_guide.pdf
    I urge you to at least read my post in the other Toshiba forum for a fuller grasp and overview, but I have also attached the two Intel website and PDF links for you.
    Keep in mind that there are seemingly two types or Intel Rapid Cache type options. Follow the instructions in the intel link and one of them will work for you. (I hope it does work for you because i know how frustrating this issue is) 
    Cheers and Best of luck
    Shane 
    Attachments:
    download.intel.com_support_motherboards_desktop_sb_rapid_start_technology_user_guide.pdf ‏349 KB
    Chipset Software — Intel® Smart Response Technology User Guide.pdf ‏506 KB
    Windows 8 Upgrade_ Items that may result in a loss_limitation of features_functionality after upgrading to Windows 8.pdf ‏191 KB
    download.intel.com_support_motherboards_desktop_sb_rapid_start_technology_user_guide.pdf ‏349 KB

  • Intel Z68 Sandy Bridge chipset and SSD caching....

    For those of us considering a move to the Sandy Bridge/Z68 platform, we will eventually need to sort out whether to take advantage of the chipset's ability to "improve" ONE hard drive with a smallish (64GB or less) SSD.
    Results I have seen indicate read speeds considerably slower than an SSD drive alone but acceptably improved performance over a bare hard drive. It seems like a promising situation. Capacity of a TB hard drive with read speeds nicely bumped upwards.
    http://www.tomshardware.com/reviews/z68-express-lucidlogix-virtu-ssd-caching,2888.html
    Question: If a user followed Harm's and other's suggestions in setting up a basic 3- or 4-drive computer, which drive should take the cheapo SSD?
    Thoughts:
    1) Assume the Z68 platform is loaded with all 16GB of memory that the four-slot Socket 1155 motherboard can typically accept. Would CS5 or 5.5 load enough program data into RAM to render placing the SSD on the OS drive for editing with Premiere minimally beneficial? Or would it simply make sense to put the SSD on the OS drive for so many other reasons that it's a no-brainer?
    2) If it's a close call, which other drive should get the SSD? If I understand correctly, this hybrid drive won't write data all that much better. The improvement will primarily be on reads. And on that, random access reads, not sustained throughput. This is especially the case with cheaper 40GB-ish SSD's. (Some one please verify this.) Most Sandy Bridge users opting for the lower end, 20 PCI-e lanes platform won't be big-time power users. (You guys are waiting for the Socket 2011 platform.) Many of us will be getting our footage from DSLR or other AVCHD sources. AVCHD is so compressed that a single drive can supply more than enough layers for the Joe Blow amateur editor.
    Unless we use Cineform NeoScene to lighten the load on the CPU, which will result in a much larger bitstream coming off the media drive for each layer, Would it make sense to help out a single drive in this situation? Or would it be universally better to set up a simple 2-disk RAID 0? Paying $65 for second drive and taking advantage of motherboard RAID 0 would seem to be a better solution if the media drive can't keep up.
    For any situation, if the media drive(s) is already fast enough, would caching the media drive offer many benefits? I'm under the impression that feeding Premiere with footage is a sequential read situation, not a random access deal. Isn't the strength of an SSD in random access reads, and wouldn't the best usage be to place it on a disk that primarily is used by Premiere in random access data fetching?
    3) Good grief. If it doesn't go on the OS or primary media drive supplying footage, where else? Projects disk? Scratch drive?
    4) Might the most useful thing be to avoid setting up a RAID while getting some of the speed benefits a RAID 0 offers? Many casual users can build a straightforward computer but have never set up a RAID array, even a 2-disk RAID 0.
    40GB SSD's are under $100 now. I suspect a lot of people will use this feature of the Z68, if the hybrid drive isn't hard to set up and is reliable. I'm curious how the Premiere crowd will make use of this feature, and will it make a palpable difference on a relatively simple editing rig? No Areca RAID cards and only 16GB memory. Nothing more than 3 or 4 single drives.

    Frankly I don't see how an inexpensive SSD would help the "caching" for editing with Premiere CS5, since a typical 7200 rpm 1TB drive can perform substained writes at about 2x what a typical small SSD does.
    Premiere CS5 continues to beg for lots of drives!
    Jim
    (one of the few "believers" in SSDs on this forum - and my "belief" is for OS and programs, not for input, media, caching, etc.)

  • How should a 3 TB WD Elements drive be formattet!

    Hi.
    How should a 3 TB WD Elements external drive be formattet for my Mac Pro! I seem to remember somebody said only with Guid
    the drive will be properly recognized? Thank you for any help.
                                                                                                  W.W.

    Yes. Do this:
    Drive Preparation
    1.  Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    If you are preparing an external or a non-startup drive, then open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.

  • Should the admin/user folder and all of its sub folders be moved to the hdd or just parts of it? (eg. picture, movies, documents)  What is the best way to go about doing this.  Also should a 2t hdd be partitioned.

    iMac with 256ssd and 2t hdd. Should the admin/user folder and all of its sub folders be moved to the hdd or just parts of it? (eg. picture, movies, documents)  What is the best way to go about doing this.  Also should a 2t hdd be partitioned.

    Yes, you can move your user directories to the HD and keep your OSX and Applications on the SSD drive.
    Whether you partition your HD or not depends on how much data you have and how you propose to use your HD.
    Are you planning to use your iMac as a Time Machine backup volume? If so, partition it off.
    Do you have huge data files, eg video, music, photos?
    How much of your 2tb drive will be "free" once it is loaded with all your data?
    A little more information is required before the optimal configuration can be recommended for your use.

  • HT1635 how should i will upgrade my macbook'13inch (late 2008)

    HI, i want to upgrade my Macbook 13inch late2009.
    so, how should i will upgrade the ram,nvida graphics and GHS
    please guide meh.
    Thank you

    You can upgrade the RAM and the disk but not the NVIDIA graphics processor.  I don’t know what a GHS is. 
    On my 2009 MacBook I upgraded the memory and disk and it did wonders for the boot time and responsiveness.  I found my $200 investment was well worth the money. 
    I expect you have 2 GB of memory so an 8 GB memory upgrade (~$100) will make a big difference.  You can also upgrade the disk to a small SSD or large hybrid SSHD for around $80 to $260.  Larger SSDs cost more.  Your choice.  The hybrid Seagate SSHD comes with an 8 GB SSD cache that provides SSD-like performance.  My storage needs were minimal so I opted for a 120 GB SSD but if I had needed 500 GB to 1 TB of capacity I would probably have chosen the SSHD.
    Order the parts from OWC (macsales.com) or Crucial.com.  They provide Mac-tested and warranted parts with excellent service.
    First confirm which model MacBook you have.  About this Mac > More Info…  Note the season and year.  Then click on System Report and note the Model Identifier.  For example, if it is a Late 2009 model it would be a MacBook 6,1.  A late 2008 model (non-aluminum) would be a 4,1.
    If it is a Late 2009 MacBook 6,1 it can hold up to 8 GB of RAM.  Apple originally supported 4 GB of RAM but OWC has tested and supports 8 GB.
    If it is a Late 2008 MacBook 4,1 it can hold up to 6 GB of RAM.  Apple originally supported 4 GB of RAM but OWC has tested and supports 6 GB.
    In these instances OWC supports larger RAM than Crucial so I would buy it form OWC.  8 GB for the 6,1 would cost you $105.  6 GB for the 4,1 would cost $125.
    The disk-bus speed for the Late 2009 MacBook is 3 Gbps, which is good for supporting SSDs and SSHDs.  Here are some example SSDs.  If your capacity needs are modest you may want to chose an SSD.  If you want the combination of 1 TB high capacity and SSD-like speed, choose the SSHD.
    http://www.crucial.com/store/listparts.aspx?model=MacBook%20(13-inch%2C%20Late%2 02009)
    Crucial M500 120 GB: $81
    Crucial M500 240 GB: $138
    Crucial M500 480 GB: $260
    http://www.crucial.com/store/modelpart.aspx?model=MacBook%20(13-inch,%20Late%202 009)&imodule=ST1000LM014
    Seagate 1 TB SSHD: $105
    For a $5 toolkit with the necessary screwdrivers I recommend http://eshop.macsales.com/item/OWC/TOOLKITMHD/
    For an enclosure to transfer the data Google “USB 3.0 enclosure”
    The Crucial and OWC sites have tutorials on installing the memory and disks.
    If you don’t want to do the upgrade yourself take it to an Apple Authorized Service Provider https://locate.apple.com/country.  An Apple store will not install non-Apple parts.

  • Does my t430s have the ssd cache that I ordered it with?

    I've been reading a little bit about some folks who have the SSD cache drive but for some reason, don't have the ExpressCache software installed.  But I'm actually trying to figure out if I even have the physical SSD drive.  In Windows Explorer, I see the C drive, the DVD RW drive and the Lenovo_Recovery drive (which I'm assuming is just partitioned off the hard drive).  Looking at the Device Manager I only see the Hitachi hard drive.  Does this mean Lenovo messed up and didn't install my SSD Cache drive?

    neil1967 wrote:
    So, how painful is it to get this fixed, since I paid for it?  Am i going to have to send the bloody thing back to lenovo?  i can't believe they'd be so shoddy with their manufacturing as to forget something like that.
    Mailing you the drive would be the smart thing to do.  Someone here will have to chime in on the proper procedure for enabling the caching after the storage device is installed.  I believe they are just using Intel RapidStart.
    See the Intel RapidStart User Guide at http://download.intel.com/support/motherboards/desktop/sb/rapid_start_technology_user_guide.pdf
    Looks like there's another thread on this topic at http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/T430s-SSD-Intel-Rapid-Start-30-day-Standby-... that has useful information.

  • How to create a cache for JPA Entities using an EJB

    Hello everybody! I have recently got started with JPA 2.0 (I use eclipseLink) and EJB 3.1 and have a problem to figure out how to best implement a cache for my JPA Entities using an EJB.
    In the following I try to describe my problem.. I know it is a bit verbose, but hope somebody will help me.. (I highlighted in bold the core of my problem, in case you want to first decide if you can/want help and in the case spend another couple of minutes to understand the domain)
    I have the following JPA Entities:
    @Entity Genre{
    private String name;
    @OneToMany(mappedBy = "genre", cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Collection<Novel> novels;
    @Entity
    class Novel{
    @ManyToOne(cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Genre genre;
    private String titleUnique;
    @OneToMany(mappedBy="novel", cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Collection<NovelEdition> editions;
    @Entity
    class NovelEdition{
    private String publisherNameUnique;
    private String year;
    @ManyToOne(optional=false, cascade={CascadeType.PERSIST, CascadeType.MERGE})
    private Novel novel;
    @ManyToOne(optional=false, cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Catalog appearsInCatalog;
    @Entity
    class Catalog{
    private String name;
    @OneToMany(mappedBy = "appearsInCatalog", cascade = {CascadeType.MERGE, CascadeType.PERSIST})
    private Collection<NovelEdition> novelsInCatalog;
    The idea is to have several Novels, belonging each to a specific Genre, for which can exist more than an edition (different publisher, year, etc). For semplicity a NovelEdition can belong to just one Catalog, being such a Catalog represented by such a text file:
    FILE 1:
    Catalog: Name Of Catalog 1
    "Title of Novel 1", "Genre1 name","Publisher1 Name", 2009
    "Title of Novel 2", "Genre1 name","Pulisher2 Name", 2010
    FILE 2:
    Catalog: Name Of Catalog 2
    "Title of Novel 1", "Genre1 name","Publisher2 Name", 2011
    "Title of Novel 2", "Genre1 name","Pulisher1 Name", 2011
    Each entity has associated a Stateless EJB that acts as a DAO, using a Transaction Scoped EntityManager. For example:
    @Stateless
    public class NovelDAO extends AbstractDAO<Novel> {
    @PersistenceContext(unitName = "XXX")
    private EntityManager em;
    protected EntityManager getEntityManager() {
    return em;
    public NovelDAO() {
    super(Novel.class);
    //NovelDAO Specific methods
    I am interested at when the catalog files are parsed and the corresponding entities are built (I usually read a whole batch of Catalogs at a time).
    Being the parsing a String-driven procedure, I don't want to repeat actions like novelDAO.getByName("Title of Novel 1") so I would like to use a centralized cache for mappings of type String-Identifier->Entity object.
    Currently I use +3 Objects+:
    1) The file parser, which does something like:
    final CatalogBuilder catalogBuilder = //JNDI Lookup
    //for each file:
    String catalogName = parseCatalogName(file);
    catalogBuilder.setCatalogName(catalogName);
    //For each novel edition
    String title= parseNovelTitle();
    String genre= parseGenre();
    catalogBuilder.addNovelEdition(title, genre, publisher, year);
    //End foreach
    catalogBuilder.build();
    2) The CatalogBuilder is a Stateful EJB which uses the Cache and gets re-initialized every time a new Catalog file is parsed and gets "removed" after a catalog is persisted.
    @Stateful
    public class CatalogBuilder {
    @PersistenceContext(unitName = "XXX", type = PersistenceContextType.EXTENDED)
    private EntityManager em;
    @EJB
    private Cache cache;
    private Catalog catalog;
    @PostConstruct
    public void initialize() {
    catalog = new Catalog();
    catalog.setNovelsInCatalog(new ArrayList<NovelEdition>());
    public void addNovelEdition(String title, String genreStr, String publisher, String year){
    Genre genre = cache.findGenreCreateIfAbsent(genreStr);//##
    Novel novel = cache.findNovelCreateIfAbsent(title, genre);//##
    NovelEdition novEd = new NovelEdition();
    novEd.setNovel(novel);
    //novEd.set publisher year catalog
    catalog.getNovelsInCatalog().add();
    public void setCatalogName(String name) {
    catalog.setName(name);
    @Remove
    public void build(){
    em.merge(catalog);
    3) Finally, the problematic bean: Cache. For CatalogBuilder I used an EXTENDED persistence context (which I need as the Parser executes several succesive transactions) together with a Stateful EJB; but in this case I am not really sure what I need. In fact, the cache:
    Should stay in memory until the parser is finished with its job, but not longer (should not be a singleton) as the parsing is just a very particular activity which happens rarely.
    Should keep all of the entities in context, and should return managed entities form mehtods marked with ##, otherwise the attempt to persist the catalog should fail (duplicated INSERTs)..
    Should use the same persistence context as the CatalogBuilder.
    What I have now is :
    @Stateful
    public class Cache {
    @PersistenceContext(unitName = "XXX", type = PersistenceContextType.EXTENDED)
    private EntityManager em;
    @EJB
    private sessionbean.GenreDAO genreDAO;
    //DAOs for other cached entities
    Map<String, Genre> genreName2Object=new TreeMap<String, Genre>();
    @PostConstruct
    public void initialize(){
    for (Genre g: genreDAO.findAll()) {
    genreName2Object.put(g.getName(), em.merge(g));
    public Genre findGenreCreateIfAbsent(String genreName){
    if (genreName2Object.containsKey(genreName){
    return genreName2Object.get(genreName);
    Genre g = new Genre();
    g.setName();
    g.setNovels(new ArrayList<Novel>());
    genreDAO.persist(t);
    genreName2Object.put(t.getIdentifier(), em.merge(t));
    return t;
    But honestly I couldn't find a solution which satisfies these 3 points at the same time. For example, using another stateful bean with an extended persistence context (PC) would work for the 1st parsed file, but I have no idea what should happen from the 2nd file on.. Indeed, for the 1st file the PC will be created and propagated from CatalogBuilder to Cache, which will then use the same PC. But after build() returns, the PC of CatalogBuilder should (I guess) be removed and re-created during the succesive parsing, although the PC of Cache should stay "alive": shouldn't in this case an exception being thrown? Another problem is what to do when the Cache bean is passivated. Currently I get the exception:
    "passivateEJB(), Exception caught ->
    java.io.IOException: java.io.IOException
    at com.sun.ejb.base.io.IOUtils.serializeObject(IOUtils.java:101)
    at com.sun.ejb.containers.util.cache.LruSessionCache.saveStateToStore(LruSessionCache.java:501)"
    Hence, I have no Idea how to implement my cache.. Can you please tell me how would you solve the problem?
    Many thanks!
    Bye

    Hi Chris,
    thanks for your reply!
    I've tried to add the following into persistence.xml (although I've read that eclipseLink uses L2 cache by default..):
    <shared-cache-mode>ALL</shared-cache-mode>
    Then I replaced the Cache bean with a stateless bean which has methods like
    Genre findGenreCreateIfAbsent(String genreName){
    Genre genre = genreDAO.findByName(genreName);
    if (genre!=null){
    return genre;
    genre = //Build new genre object
    genreDAO.persist(genre);
    return genre;
    As far as I undestood, the shared cache should automatically store the genre and avoid querying the DB multiple times for the same genre, but unfortunately this is not the case: if I use a FINE logging level, I see really a lot of SELECT queries, which I didn't see with my "home made" Cache...
    I am really confused.. :(
    Thanks again for helping + bye

Maybe you are looking for

  • Export/import login server and user grup security

    Hi, I followed the instructions to export Login server, user group security using the ssoexp.csh, secexp.csh. Then I imported the login server, and user group security using the ssoimp.csh, secimp.csh . I then logged into Portal and check the users,

  • Java heap error

    Hi All I have developed a Matrix report recently and it is throwing error when it was loaded and ran locally and also after registerd in the Apps.The error is "Java Heap Error".Correct me if i am wrong to my knowledge what i am thinking is it is gett

  • Input/output error when installing CS6 on my MacBook Air 10.10 Yosemite

    I have the CS6 disk and I keep getting input/output error when I try installing it on my new MacBook Air 10.10 with Yosemite.

  • IPad 2 freezes for 1min to 3mins after ios8 upgrade

    My faithful iPad 2 never had a problem until I upgraded to ios8. IT now hangs, or freezes, and will not respond to touch or to buttons. I will pick up the iPad, click face book start to scroll and it frezes. Nothing I do will get it to work. I'll mov

  • Sound clicks after installing SMC update 1.9

    Hi, I have updated SMC driver this afternoon. Since, I have heard crackling / clicking sounds when I play any audio with my headphones in. Initially I thought my headphones are playing up, but the problem continues on speaker as well. Any solution? (