Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-06-2002, 05:35 PM
|
#1
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
Wonderful Memory/Swap use?
How Linux can play a song, access a file, shows a movie if I delete the file during the process? I just discover I can move a mp3 and still listen to the song. Just a question: How? 
|
|
|
08-06-2002, 06:11 PM
|
#2
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
You can move the MP3 file and it still plays (in xmms?) because the whole file has been dumped to memory and it's being played from there. Let's say, however, that you load a playlist (.m3u or whatever) and move one of the individual files (one that hasn't been played yet) in the list... when the player reaches that particular file, it'll throw a wobbly (or at least skip the file(s) and move onto the next valid file location).
Hope this helps.
|
|
|
08-06-2002, 06:19 PM
|
#3
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
Another observation, let say you have a huge mp3 file and you are playing it, memory gets filled with as much it can fit, lets say you removed the file after it started to play, the next page swap that occures in memory to free up/release unused pages and brin the new ones in you can have unpredictable outcome - you'd consider yourself lucky if it stops playing - I believe with linux memory management this is the case, in windows you'll get BSOD in the best case scenario.
|
|
|
09-25-2002, 07:15 PM
|
#4
|
LQ Newbie
Registered: Sep 2002
Posts: 1
Rep:
|
Another possibility is when you move a file to another location in the same partition, you're not actually moving the file, you're just changing the directory information about that file. The operating system doesn't refer to that file by the directory name e.g. "/usr/data/mymusic/whatever.mp3", it refers to its inode. When you move a file, you don't change the inode, so when you move the file, the application that is currently reading the file has no idea about it because it doesn't track what the name, or directory location, of the file is (it only cares about the inode).
|
|
|
All times are GMT -5. The time now is 05:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|