Linux API/alsa2014. 10. 16. 09:42
Ubuntu 10.04의 경우 1.0.21 버전이고
현재 최신 버전은 2014년 6월 17일자로 1.0.28 버전이다.

/proc/asound$ cat version
Advanced Linux Sound Architecture Driver Version 1.0.21.


아무튼.. 1.0.28 버전에서 잠재적 memory leak이 해결되었다는데.. 어떨런지?

[링크 : http://alsa.opensrc.org/TroubleShooting]
[링크 : http://stackoverflow.com/questions/13478861/alsa-mem-leak] << 해결책으로 conf 설정을 free 하라고 한다
   [링크 : http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=MEMORY-LEAK;hb=HEAD]

[링크 : http://www.alsa-project.org/main/index.php/Changes_v1.0.27.2_v1.0.28]
[링크 : http://www.alsa-project.org/main/index.php/Download]


ALSA 크로스 컴파일
[링크 : http://forum.falinux.com/zbxe/index.php?document_srl=531325&mid=lecture_tip

ALSA 다운로드 링크
driver / lib / firmware가 있는데.. 걍 lib만 하면 libasound.so가 나오는 것으로 보인다.
[링크 : ftp://ftp.alsa-project.org/pub/lib/ ]
[링크 : http://alsa.cybermirror.org/lib/

'Linux API > alsa' 카테고리의 다른 글

alsa + ffmpeg 벤치마크(?)  (0) 2014.10.23
alsa 패키지 종류  (0) 2014.10.21
alsa 프로그래밍 정리  (0) 2014.09.18
alsa proc file system  (0) 2014.09.16
ALSA (Advanced Linux Sound Architecture)  (0) 2014.09.15
Posted by 구차니
프로그램 사용/valgrind2014. 10. 15. 17:34
valgrind 3.3 에 대한 tag를 svn으로 받아서 보니..
i?86 / x86_64/ powerpc / powerpc64 만을 지원한다 -_-

valgrind 3.8 에서는 ARM을 지원하나 ARMv7만을 지원하고
이녀석들은.. Cortex 시리즈용 아키텍쳐다 ㅠㅠ
ARM925 이런건 실행도 못해본다 -_ㅠ
ArchitectureBit
width
Cores designed by ARM HoldingsCores designed by third partiesCortex profileReferences
ARMv1
32/26
ARM1
ARMv2
32/26
ARM2ARM3 Amber, STORM Open Soft Core[28]
ARMv3
32
ARM6ARM7
ARMv4
32
ARM8 StrongARM, FA526
ARMv4T
32
ARM7TDMIARM9TDMI
ARMv5
32
ARM7EJARM9EARM10E XScale, FA626TE, Feroceon, PJ1/Mohawk
ARMv6
32
ARM11
ARMv6-M
32
ARM Cortex-M0ARM Cortex-M0+ARM Cortex-M1 Microcontroller
ARMv7-M
32
ARM Cortex-M3
Microcontroller
ARMv7E-M
32
ARM Cortex-M4
Microcontroller
ARMv7-R
32
ARM Cortex-R4ARM Cortex-R5ARM Cortex-R7
Real-time
ARMv7-A
32
ARM Cortex-A5ARM Cortex-A7ARM Cortex-A8ARM Cortex-A9ARM Cortex-A12ARM Cortex-A15ARM Cortex-A17 KraitScorpion, PJ4/Sheeva, Apple A6/A6X (Swift)
Application
ARMv8-A
64/32
ARM Cortex-A53ARM Cortex-A57[29] X-GeneNvidia Project DenverApple A7 (Cyclone), AMD K12Apple A8
Application
[30][31]
ARMv8-R
32
No announcements yet
Real-time
[32][33]
[링크 : http://en.wikipedia.org/wiki/ARM_architecture#Cores]

Current

Valgrind supports the following platforms:
x86/Linux: support is mature and almost complete.
AMD64/Linux: support is mature and almost complete. Note that AMD64 is just another name for x86-64, and that Valgrind works fine on Intel machines.
PPC32/Linux: support is new but fairly complete.
PPC64/Linux: support is new but fairly complete.
x86/Darwin (Mac OS X): support is new.
AMD64/Darwin (Mac OS X): support is new.
S390X/Linux: support is new in 3.7.0.
ARM/Linux support for ARMv7 is fairly complete.
ARM/Android support is new in 3.7.0.
MIPS32/Linux support is new in 3.8.0.
On Linux, you must be running kernel 2.6.X or later, and glibc 2.5.X or later. That covers the vast majority of installed systems at present. On Mac OS X you must be running 10.7.x or later.

For details of which distributions the current release (valgrind-3.10.0) builds and runs its regression tests on, see the release notes.
[링크 : http://valgrind.org/info/platforms.html

'프로그램 사용 > valgrind' 카테고리의 다른 글

valgrind callgrind  (0) 2023.07.07
valgrind 누수 종류  (0) 2022.01.18
vaglind 사용  (0) 2022.01.14
valgrind GUI frontend- kcachegrind / valkyrie  (0) 2014.10.15
Posted by 구차니
프로그램 사용/valgrind2014. 10. 15. 17:25
valgrind에서 cache 로그를 분석하기 위한 GUI front-end로 kcachegrind가 있고
valgind log를 XML로 출력해서 분석하기 위한 valkyrie가 존재하는데.

valkyrie는 Ubuntu 10.04에서는 1.4.0 이기에
해당 valgrind 버전은 3.3.x 대의 XML 파일이 나와야 한다 -_-a
(문제는 3.3.x를 받아서 arm용으로 크로스 컴파일 하려니 지원하지 않는다는 점..
configure를 뒤져보니 x86 / powerpc 정도만 지원하는 것으로 보인다)

일단 둘다 QT를 지원해야 한다

[링크 : http://kcachegrind.sourceforge.net/] cachegrind 로그 뷰어
[링크 : http://www.open-works.net/projects/valkyrie.html] valkyrie (XML 파일 뷰어)



+
alleyoop 이라는 녀석도 우분투에서 패키지로 지원하나.. 10.04에서는 역시 구버전만.. 

'프로그램 사용 > valgrind' 카테고리의 다른 글

valgrind callgrind  (0) 2023.07.07
valgrind 누수 종류  (0) 2022.01.18
vaglind 사용  (0) 2022.01.14
valgrind 지원 플랫폼  (0) 2014.10.15
Posted by 구차니
Programming/php2014. 10. 15. 15:45
Zend opcache에 실패하고 뱅글뱅글 돌아 다시 컴백...
일단 arm용 lighttpd에서 쑈하다가 또 다시 벽에 부딛힌.. ㅠㅠ

[링크 : http://xcache.lighttpd.net/wiki/Faq]

'Programming > php' 카테고리의 다른 글

lighttpd + php 퍼미션 문제  (0) 2014.10.21
php.ini extension_dir  (0) 2014.10.20
php 5.5.17 opcache / arm  (0) 2014.10.14
php - extensions are not supported on this platform / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
Posted by 구차니
Programming/php2014. 10. 14. 17:12
php 5.5 부터 Zend에서 기본 내장된 opcache라는 녀석이 있는데..
ARM에서 크로스 컴파일로 하려니

일단 dlopen 에서 패스를 하지 못해
extensions are not supported on this platform 이런 에러 발생..
이거야 configure에서 해당 부분을 강제로 스킵하게 하면 되지만

flock structure도 배를 째서..
그냥 강제로 flock_type=linux로 해서 컴파일 하는데 성공!

하지만 
정작 기능을 활성화 시키면
Fatal Error Unable to allocate shared memory segment of 8388608 bytes: unknown: Numerical result out of range (34)
에러를 발생한다.
opcache의 경우 opcache.memory_consumption 캐싱용량을 최소 8MB 이상으로 하기에 그 이하로 지정해도
무조건 8MB 이상으로 하기에 php.ini나 opcache.ini 에서 opcache.memory_consumption = 1M로 해도
뜬금없이 8MB로 나와서 헤메게 하는 부분.. -_-
그런 중요(?)한건 좀 메뉴얼에 제대로 명시하라고!! (디버깅 모드로 메시지 출력하도록 해서 발견)

opcache.memory_consumption integer
The size of the shared memory storage used by OPcache, in megabytes.
 
[링크 : http://php.net/manual/en/opcache.configuration.php] 

아무튼.. shared 메모리를 자꾸 외쳐서
/etc/sysctl.conf에서 설정해주고 리부팅 해도
이래저래 안되서.. 결론적으로 포기 ㅠㅠ

[링크 : https://www.msi.umn.edu/.../support/download/Linux_shared_mem_seg.html] shared memory
[링크 : http://pic.dhe.ibm.com/...com.ibm.swg.im.soliddb.accel.doc%2Fdoc%2Fsma.kernels.linux.html] sysctl
[링크 : http://stackoverflow.com/questions/17224798/how-to-use-php-opcache]
[링크 : https://github.com/zendtech/ZendOptimizerPlus/issues/134

'Programming > php' 카테고리의 다른 글

php.ini extension_dir  (0) 2014.10.20
php 5.3.22 / xcache 1.3.2  (0) 2014.10.15
php - extensions are not supported on this platform / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
<? <?php 설정  (0) 2014.10.10
Posted by 구차니
Programming/php2014. 10. 14. 10:57
크로스컴파일 해서 넣는데
php / php-cgi를 실행하면 계속 확장기능을 쓸수 없다고 나와서
의아한 나머지 검색을 해보니

dlopen 이라는 녀석에서 no가 뜬다 -_-!!
Running system checks
checking for sendmail... no
checking whether system uses EBCDIC... no
checking whether byte ordering is bigendian... unknown
checking whether writing to stdout works... no
checking for socket... yes
checking for socketpair... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... no
checking for __yp_get_default_domain... no
checking for yp_get_default_domain in -lnsl... yes
checking for dlopen... no
checking for __dlopen... no
checking for dlopen in -ldl... yes 

소스를 뒤져보면.. dlopen이라는게 이렇게 있는데 
$ vi Zend/zend.h
#if defined(HAVE_LIBDL) && !defined(ZEND_WIN32)

# ifndef RTLD_LAZY
#  define RTLD_LAZY 1    /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
# endif

# ifndef RTLD_GLOBAL
#  define RTLD_GLOBAL 0
# endif

# if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
#  define DL_LOAD(libname)          dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
# elif defined(RTLD_DEEPBIND)
#  define DL_LOAD(libname)          dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
# else
#  define DL_LOAD(libname)          dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
# endif
# define DL_UNLOAD                  dlclose
# if defined(DLSYM_NEEDS_UNDERSCORE)
#  define DL_FETCH_SYMBOL(h,s)      dlsym((h), "_" s)
# else
#  define DL_FETCH_SYMBOL           dlsym
# endif
# define DL_ERROR                   dlerror
# define DL_HANDLE                  void *
# define ZEND_EXTENSIONS_SUPPORT    1
#elif defined(ZEND_WIN32)
# define DL_LOAD(libname)           LoadLibrary(libname)
# define DL_FETCH_SYMBOL            GetProcAddress
# define DL_UNLOAD                  FreeLibrary
# define DL_HANDLE                  HMODULE
# define ZEND_EXTENSIONS_SUPPORT    1
#else
# define DL_HANDLE                  void *
# define ZEND_EXTENSIONS_SUPPORT    0
#endif 

[링크 : http://www.opensource.apple.com/.../apache_mod_php-18.8/php/Zend/zend_extensions.c

*.so로 제공되는 확장기능을 당연히 dlopen()을 쓸수 없으면 dynamic linking을 쓸수 없기에 비활성화 되는 것 -_-
configure에서 강제로 해당 부분을 주석 처리하고 넘기는 수 밖에 없다. 
Name
dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programming interface to dynamic linking loader

Synopsis
#include <dlfcn.h>
void *dlopen(const char *filename, int flag);
char *dlerror(void);
void *dlsym(void *handle, const char *symbol);
int dlclose(void *handle);

Link with -ldl.

[링크 : http://linux.die.net/man/3/dlopen

'Programming > php' 카테고리의 다른 글

php 5.3.22 / xcache 1.3.2  (0) 2014.10.15
php 5.5.17 opcache / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
<? <?php 설정  (0) 2014.10.10
lighttpd + php-fpm  (0) 2014.10.10
Posted by 구차니
embeded/ARM2014. 10. 13. 12:10
target만 지정하면 되는줄 알았는데 음..
target으로 지정할 경우
libtool에서 인식을 하지 못해 shared object등을 생성하지 못하는 문제가 있기에
host로 지정을 하라고 한다.

--build=BUILD BUILD 상에서의 빌드를 위한 설정 (i686?)
--host=HOST HOST 상에서 실행되는 프로그램을 빌드하기 위한 크로스 컴파일러 (arm-none-linux-gnueabi)
--target=TARGET TARGET을 위한 빌딩 컴파일러를 위한 설정

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

[링크 : http://stackoverflow.com/.../libtool-claims-it-does-not-support-shared-libraries-during-cross-compilation

'embeded > ARM' 카테고리의 다른 글

freescale imx283 boot error code  (0) 2015.01.07
Unknown HZ value! (91) Assume 100.  (0) 2015.01.05
iWMMX / iWMMXt - Intel XScale SIMD instructions  (0) 2014.10.08
thumb의 장단점?  (0) 2014.09.29
dsp & simd / neon  (0) 2014.09.22
Posted by 구차니
개소리 왈왈/컴퓨터2014. 10. 12. 23:28
집에 NAS를 하나 둘까 만들까 하면서
분가하면서 버려두었던 녀석을 다시 가져 왔는데..
케이스 사서 메인보드 이식하고 ATX 파워 넣고
SATA 스왑되는 케이스 사서 하나 만들어 볼까 싶기도 한데...



---

메인보드는 IPX7A-ION
[링크 : http://downloads.pointofview-online.com/Other/Mainboards/ION-MB330/manual_MB-ION-330_Mainboard.pdf]

cpu별 벤치마크
GbE의 경우 확실히 Atom 330으로 커버하기는 좀 힘든듯 하다
그래도 아주 부족하지는 않은 꽤 쓸만한 수준으로 나와 줄 것 같긴한데
물론 내장된 게 100M Fast Ethernet이라.. pci-ex GbE를 따로 사야 하는게 문제지만? -_-
[링크 : http://www.smallnetbuilder.com/...?option=com_content&task=view&id=30911&pop=1&page=0&Itemid=77]

예전부터 들어오던 녀석인데..
나중에 한번 USB로 부팅하도록 하고 구성한 다음에 웹 UI 살펴봐야 할 듯
[링크 : http://www.freenas.org/]
[링크 : http://honghome.tistory.com/539]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

UMID M1 블랙이 입양!  (0) 2014.12.23
umid m1 한대 더 지르기!!  (0) 2014.12.20
은근.. 붕 떠버린 내 데탑..  (0) 2014.10.03
nforce 560 / amd 770 HT 차이점?  (0) 2014.09.11
간만에 지름  (0) 2014.09.10
Posted by 구차니
게임/마비노기2014. 10. 12. 23:05
드디어!!  35만 두카트를 모아서 코끼리를 샀는데!!!
코끼리 엉덩이만 화면 가득 보이는 사태가 발생 -_-

부랴부랴 검색해보니..
언팩 계열 밖에 없는데.. 아내꺼를 보니 엉덩이보다는 멀리 보여서
이것저것 설정을 하보니 -_-!!!

줌 아웃 확장이라고 하니 맞는건 맞는데
딱히 와닫지 않아서 이게 시야각 관련 설정이라고는 상상도 못했네 -_-!!

 
Posted by 구차니
근데 영문판! ㅠㅠ

 
Posted by 구차니