FASTER music/movie browsing and DB access | Page 2

Discussion in 'Listen Music' started by htpcNoob, April 6, 2005.

  1. LaPistola

    LaPistola Guest

    Ratings:
    +0 / 0
    How big is the whole media portal install? I would think with enough ram.. you could rock!

    I have a gig of ram.. would that be enough?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. htpcNoob

    htpcNoob Portal Pro

    Joined:
    January 23, 2005
    Messages:
    52
    Likes Received:
    0
    Ratings:
    +0 / 0
    It all depends on whats you have on your running in the background while using MP. 1GB should be enough IMHO to create a large enough ramdisk to put an entire installation of MP on a RAMDISK and still have enought memory to operate. I have 512MB of ram on my DEDICATED HTPC and my mem usage on average peaks at about 475MB. 80MB for of the memory is for a ramdrive. This maybe different for regular users. My HTPC has been tweaked heavily to the point where I went apesh*t on keeping installation size to a minimum and determining what services/app run in the backgroun. (Mostly in part due to nLite. Check it out @ http://nuhi.msfn.org/). It is hard to create a RAMDISK over 128MB of ram with system instability. Ramdisk require contiguous allocation of memory address space.

    Here are some 2 tips to keeping MP installation small:
    - Delete/backup unnecessary skins
    - The database schema in MP is constantly being improved and makes database files (in the "database" folder) obsolete. You can delete old versions if you notice multiple database files in the MP after updating and importing. Eg: In the database folder if you have files musicdatabase4.db and musicdatabase5.db, you can delete musicdatabase4.db. Make sure all the data from previous versions of the DB were imported first. Usually if the size of the new database is greater than or equal to the previous database, that means the previous versions data was most likely imported (i think the importing is done automatically after new installations. Not sure).

    You will have to manage your ramdisk carefully when considering its size which will be affected by the sizes of database and thumbnails. I dont use EPG as i have an STB from my cable provider with EPG so that drastically reduces my database size. Thumbnails for "My Pictures" are exteremly large as well since they are of higher quality. This is why I only keep thumbnails of Music Albums and Movie Titles on the ramdrive.
    These thumbnails are between 5KB-32KB. MP often downloads multiple images of different sizes of the same video.

    Before allocating space, i did some calculations to see what size of a ramdrive would suit my needs. I did some guesswork with the sizes of the database and thumbnails based on the number of thumbnails i had and the sizes of the database:
    Database size for info on 5000 mp3's: ~700KB
    Database size for info on 100 movies: ~300KB
    Average thumbnail image size: ~25KB

    Based on this I calculated the size of my RamDrive so that I wouldnt have to worry about it anytime soon.

    Hope this helps.
     
  4. rtv
    • Premium Supporter

    rtv Retired Team Member

    Joined:
    April 7, 2005
    Messages:
    3,622
    Likes Received:
    301
    Occupation:
    CTO at ES2000
    Location:
    Osnabruck
    Ratings:
    +301 / 0
    Home Country:
    Germany Germany
    Show System Specs
    *double post deleted*
     
  5. rtv
    • Premium Supporter

    rtv Retired Team Member

    Joined:
    April 7, 2005
    Messages:
    3,622
    Likes Received:
    301
    Occupation:
    CTO at ES2000
    Location:
    Osnabruck
    Ratings:
    +301 / 0
    Home Country:
    Germany Germany
    Show System Specs
    What Ramdisk-Driver did you finally choose to extend the Ramdisk further than 32MB?
     
  6. htpcNoob

    htpcNoob Portal Pro

    Joined:
    January 23, 2005
    Messages:
    52
    Likes Received:
    0
    Ratings:
    +0 / 0
  7. rtv
    • Premium Supporter

    rtv Retired Team Member

    Joined:
    April 7, 2005
    Messages:
    3,622
    Likes Received:
    301
    Occupation:
    CTO at ES2000
    Location:
    Osnabruck
    Ratings:
    +301 / 0
    Home Country:
    Germany Germany
    Show System Specs
    The latter I use here..

    What exactly do you mean with unstable? Does your system freeze sometimes using the first driver?
     
  8. SpaceProtector

    SpaceProtector Portal Member

    Joined:
    November 30, 2004
    Messages:
    23
    Likes Received:
    0
    Ratings:
    +0 / 0
    To answer the question some posts ago: I have the complete xmltv dir in the RAM. I grab the tvguide.xml on a different computer and copy it on the htpc afterwards as I do not have an internet connection. I deleted all unnecessary files therefore. (like the docs).
     
  9. htpcNoob

    htpcNoob Portal Pro

    Joined:
    January 23, 2005
    Messages:
    52
    Likes Received:
    0
    Ratings:
    +0 / 0
    Unstable when creating a large Ramdisk. Say.. 128MB. As i mentioned that Ramdisk must allocate contiguous memory in order to create a ramdisk. Just like a hard disk, memory becomes fragmented when loading/unloading applications (even at boot time) and trying to allocate 128MB of contiguous ram space could fail and cause a BSOD.
     
  10. fpouels

    fpouels Portal Member

    Joined:
    April 16, 2005
    Messages:
    27
    Likes Received:
    0
    Location:
    Bennekom
    Ratings:
    +0 / 0
    Home Country:
    Netherlands Netherlands
  11. mzemina
    • Premium Supporter

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Likes Received:
    13
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    But can't you defrag a ramdisk just like a regular harddisk?
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!