View previous topic :: View next topic |
Author |
Message |
Babali Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 01 Jan 2004 Posts: 211 Location: France, Paris
|
Posted: Wed Jul 05, 2006 11:52 am Post subject: [Optimisation] mmx, sse ect... |
|
|
Bonjour, suite a une configuration de kmplayer/xine, je me demande quel est la meilleur technique pour memcpy parmis probe, libc, kernel, mmx, mmxext, sse.
Tant qu'on y est savez vous a quoi correspond mmap (dans alsa) ? Est-ce que c'est un moyen plus performant pour copier les buffers ?
Est-ce que certains on config des trucs en plus pour avoir un playback avec xine de meilleur qualite ?
Merci
PS: pour ceux qui savent pas quoi choisir comme player, kmplayer avec xine en dessous marche tres bien, avec ca en USE :
Code: | # Hardware
USE="3dnow 3dnowext sse mmx mmxext opengl openal"
# Codex
USE="${USE} jingle ffmpeg win32codecs xvid aac aalib asf flac libcaca mng speex theora mp3 mpeg ogg matroska "
# truc :p
USE="${USE} xine alsa" |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Il turisto l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/153693952344a15197cff5f.jpg)
Joined: 12 May 2004 Posts: 968 Location: Battincourt - Belgique
|
Posted: Wed Jul 05, 2006 12:07 pm Post subject: |
|
|
Donner tes use flags hardware c'est bien joli mais ceux ci dépendent de ton processeur.
Moi par exemple ayant un pentium je ne saurais que faire du flag 3dnow ... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enlight Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/34498084446f6e929bedfd.jpg)
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Wed Jul 05, 2006 2:05 pm Post subject: |
|
|
Heu... c'est quoi la question????????????????????????????????????????? ![Shocked 8O](images/smiles/icon_eek.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Babali Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 01 Jan 2004 Posts: 211 Location: France, Paris
|
Posted: Wed Jul 05, 2006 5:13 pm Post subject: |
|
|
Enlight wrote: | Heu... c'est quoi la question????????????????????????????????????????? ![Shocked 8O](images/smiles/icon_eek.gif) |
Attends je vais t'aider :
Quote: | Bonjour, suite a une configuration de kmplayer/xine, je me demande quel est la meilleur technique pour memcpy parmis probe, libc, kernel, mmx, mmxext, sse.
Tant qu'on y est savez vous a quoi correspond mmap (dans alsa) ? Est-ce que c'est un moyen plus performant pour copier les buffers ?
Est-ce que certains on config des trucs en plus pour avoir un playback avec xine de meilleur qualite ?
Merci |
En gros quel est la meilleur technique pour le memcpy, et en quoi elles different toutes ?
Qu'est-ce que le mmap ?
Les ptits plus qui rendent la vie plus belle avec xine ?
J'ai repondu a ta question ? La prochaine fois je m'exprimerais mieux... mea culpa :p |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enlight Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/34498084446f6e929bedfd.jpg)
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jul 06, 2006 7:25 am Post subject: |
|
|
Ben qu'il y'ait une implémentation glibc et une implémentation kernel je veux bien, celle de la libc se contente probablement de faire quelques tests avant de lancer celle du kernel....
après probe : késako? et que viennent faire mmx* et sse* là dedans??? je conçois qu'à la limite on veuille utiliser un registre mmx en guise de compteur mais bon....
edit pour mmap, ben ça mappe un fichier en ram |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Babali Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 01 Jan 2004 Posts: 211 Location: France, Paris
|
Posted: Thu Jul 06, 2006 2:19 pm Post subject: |
|
|
Merci pour ta reponse.
Qu'est-ce que c'est que "mapper" un fichier en ram ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enlight Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/34498084446f6e929bedfd.jpg)
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Fri Jul 07, 2006 7:14 am Post subject: |
|
|
Babali wrote: | Merci pour ta reponse.
Qu'est-ce que c'est que "mapper" un fichier en ram ? |
ben copier son contenu en RAM. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Babali Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_archon.gif)
Joined: 01 Jan 2004 Posts: 211 Location: France, Paris
|
Posted: Fri Jul 07, 2006 8:41 am Post subject: |
|
|
Quote: | There are two functions for this kind of transfer. Application can get an access to memory areas via snd_pcm_mmap_begin() function. This function returns the areas (single area is equal to a channel) containing the direct pointers to memory and sample position description in snd_pcm_channel_area_t structure. After application transfers the data in the memory areas, then it must be acknowledged the end of transfer via snd_pcm_mmap_commit() function to allow the ALSA library update the pointers to ring buffer. This kind of communication is also called "zero-copy", because the device does not require to copy the samples from application to another place in system memory. |
Voir aussi http://en.wikipedia.org/wiki/Mmap
Ca vient de la doc alsa, en fait le gros interet c'est que snd_pcm_mmap_begin() nous file une zone de memoire partagee avec alsa et donc ca evite de copier deux fois les buffers. Apres est-ce que c'est mieux ... je sais pas. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|