[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gap-dev-discuss] Cynthiune loading large playlist
From: |
Sebastian Reitenbach |
Subject: |
Re: [Gap-dev-discuss] Cynthiune loading large playlist |
Date: |
Sat, 02 Jun 2012 19:55:08 +0200 |
User-agent: |
SOGoMail 1.3.15 |
On Saturday, June 2, 2012 15:56 CEST, Philippe Roussel <address@hidden> wrote:
> Hi Sebastian,
>
> Thanks for the details.
>
> I quickly tried with ulimit -n 200 without any problem but I'll recheck
> everything when I have more time.
>
> What I don't understand is that when the playlist is shown, lsof on
> Cynthiune doesn't list any media file opened, which should mean that the
> file handles are correctly closed ?
When opening the Playlist on a different computer, where the files are not
available, then the problem doesn't show up, otherwise I'd have attached
my playlist. I also recognized, that the problem doesn't seem to happen
always, it took me about 3 or 5 times to try to reproduce it. Just tested
different directories, my home directory, and then one level down, the
directory where my music is in.
Sebastian
$ fstat -p 24801
USER CMD PID FD MOUNT INUM MODE R/W SZ|DV
sebastia Cynthiune 24801 text /usr/local 1094403 -rwxr-xr-x r 679362
sebastia Cynthiune 24801 wd /home 8825856 drwxr-xr-x r 1024
sebastia Cynthiune 24801 0 / 52473 crw--w---- rw ttyp4
sebastia Cynthiune 24801 1 / 52473 crw--w---- rw ttyp4
sebastia Cynthiune 24801 2 / 52473 crw--w---- rw ttyp4
sebastia Cynthiune 24801 3 pipe 0xdaa0fe10 state:
sebastia Cynthiune 24801 4 pipe 0xdaa0fe10 state:
sebastia Cynthiune 24801 5 pipe 0xda377f7c state:
sebastia Cynthiune 24801 6 pipe 0xda377f7c state:
sebastia Cynthiune 24801 7* unix stream 0xd4ed0f80
sebastia Cynthiune 24801 8 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 9 pipe 0xda377cf4 state:
sebastia Cynthiune 24801 10 pipe 0xda377cf4 state:
sebastia Cynthiune 24801 11* unix stream 0xd4fdd040 <-> 0xd4ddba40
sebastia Cynthiune 24801 12* unix stream 0xd4fa48c0
sebastia Cynthiune 24801 13* unix stream 0xd4ee3200 <-> 0xd4f11700
sebastia Cynthiune 24801 14 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 15 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 16 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 18 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 19 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 20 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 21 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 22 /home 9191524 -rwxrwxrwx r 8112644
sebastia Cynthiune 24801 23 /home 9191524 -rwxrwxrwx r 8112644
sebastia Cynthiune 24801 24 /home 9191524 -rwxrwxrwx r 8112644
sebastia Cynthiune 24801 25 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 26 /home 9191524 -rwxrwxrwx r 8112644
sebastia Cynthiune 24801 27 /home 9191524 -rwxrwxrwx r 8112644
sebastia Cynthiune 24801 28 /home 9191524 -rwxrwxrwx r 8112644
sebastia Cynthiune 24801 29 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 30 /home 9191513 -rwxrwxrwx r 6493098
sebastia Cynthiune 24801 31 /home 9191513 -rwxrwxrwx r 6493098
sebastia Cynthiune 24801 32 /home 9191513 -rwxrwxrwx r 6493098
sebastia Cynthiune 24801 33* unix stream 0xd5221980 <-> 0xd51ca980
sebastia Cynthiune 24801 34 /home 9191513 -rwxrwxrwx r 6493098
sebastia Cynthiune 24801 35 /home 9191513 -rwxrwxrwx r 6493098
sebastia Cynthiune 24801 36 /home 9191513 -rwxrwxrwx r 6493098
sebastia Cynthiune 24801 37 /home 9191519 -rwxrwxrwx r 7442494
sebastia Cynthiune 24801 38 /home 9191512 -rwxrwxrwx r 8045002
and so on, up to number 126.
>
> Thanks,
> Philippe
>
> Le 02/06/2012 15:42, Sebastian Reitenbach a écrit :
> >
> > On Saturday, June 2, 2012 15:01 CEST, Philippe Roussel <address@hidden>
> > wrote:
> >
> >> Hi,
> >>
> >> Le 02/06/2012 11:20, Sebastian Reitenbach a écrit :
> >>> Hi,
> >>>
> >>> when having a large playlist in Cynthiune, then weird things happen for
> >>> me. It seems, there are too many
> >>> file descriptors open. It seems, Cynthiune checks all files in the
> >>> playlist, and keeps an open file descriptor for it.
> >>
> >> How many files, and what kind of files, are we talking about ?
> >>
> >> I just created a playlist with 1007 items and while it is quite slow to
> >> start Cynthiune, things seem to work.
> >
> > On OpenBSD, /etc/login.conf defines resource limits. There I have:
> >
> > openfiles-cur=128
> >
> > 128 is generally fine, even Firefox and other beasts work fine with that
> > limit.
> >
> > I think you can try to reproduce the problem on Linux when you lower the
> > open files using
> > ulimit -n 1000
> > maybe for your case, or something lower.
> >
> > On a linux box where I have access, the open files limit is set to 1024,
> > maybe for you too, and
> > you just missed it by a small number of songs in your playlist?
> >
> > How I did it: in the Add music files dialog, I just had my home directory
> > open, and I definitely
> > have more than 128 audio files in there, which Cynthiune could pick up.
> > Mostly mp3, but also FLAC,
> > Ogg, and some others.
> > When I clicked there the OK button, It already started to behave weirdo,
> > then I tried to restart Cynthiune
> > on the console, and saw the console output. I deleted the playlist, to be
> > able to start Cynthiune again.
> >
> > Sebastian
> >
> >
> >>
> >> Philippe
> >>
> >
> >
> >
> >
> >
>