andyg;538084 Wrote: 
> The problem is not memory but CPU usage.  There is no swap space, so if
> you run out of memory things would be killed and you'd more than likely
> have a forced reboot.  So the speed of FLAC decoding is the problem, not
> the amount of memory in use.  We more than likely need to look at some
> ARM assembler optimizations for the FLAC decoder.  See
> http://bugs.slimdevices.com/show_bug.cgi?id=15361


I'm not so sure about that. When memory gets very tight the memory
manager can assign physical memory that is currently occupied by code
(instructions) to a new memory request. This does not take swap space
because there is already backing store for the code. When that code
comes around to being run again a page fault happens and it has to be
loaded back into memory from backing store. If things are full some
other code area gets used for this. When IT gets run ... 

This behavior does not cause a crash it just slows things down.

Of course the memory manager will try and only give out physical memory
used by code that has not been run in a long time. Thus the behavior
being seen by some people sort of makes sense: when you first start
playing high rez flac files you get some stuttering, but then it tends
to go away and you don't have problems from then on even when playing
new flac files. Over time things stabilize and the code in memory is
what is being used all the time. 

The above scenario seems to me to be a reasonable possibility for what
is happening, thus trying to determine if problems only happen while
SBS is resident is important. It may not be what is happening but I
think its important to find out if it is or not.

Since we are now getting reports from people having problems with no
USB or SD attached its definitely pointing towards it not being a
memory issue. 

But there was also a report of hi rez WAV file having problems, that
can't be the result of the flac decoder. 

The variability in reports is interesting. I can play 24/96 -8 flacs
from an external server, wired or wireless, VU meters on without any
problems. Stopping, starting, changing files etc. It works perfectly.
Yet others are having problems with -5 files wired without visualizers.
That should be a BIG difference in CPU usage. That seems point to
something else going on other than just flac decoder. 

John S.


-- 
JohnSwenson
------------------------------------------------------------------------
JohnSwenson's Profile: http://forums.slimdevices.com/member.php?userid=5974
View this thread: http://forums.slimdevices.com/showthread.php?t=77550

_______________________________________________
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch

Reply via email to