This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

insmod syslink.ko time cost always change

Hello all,

I'm developing on TI8148EVM, using version DVRRDK_03.50.00.05\ti_tools\syslink\syslink_2_20_02_20.

i wanna analyze time cost of inserting syslink driver in linux.

but measured result always change.

i use linux system command "time" to measure time used by "insmod syslink.ko",

and "sync" ensure measure accuracy, and no background processes.

 

log info :

root@dm814x:/opt/dvr_rdk/ti814x/kermod# sync
root@dm814x:/opt/dvr_rdk/ti814x/kermod# time insmod syslink_old.ko 
SysLink version : 2.20.02.20
SysLink module created on Date:Oct 23 2014 Time:19:22:13
real 0m 0.50s
user 0m 0.00s
sys 0m 0.35s
root@dm814x:/opt/dvr_rdk/ti814x/kermod# rmmod syslink
Removed syslink kernel module
root@dm814x:/opt/dvr_rdk/ti814x/kermod# sync
time insmod syslink_old.ko 
root@dm814x:/opt/dvr_rdk/ti814x/kermod# time insmod syslink_old.ko 
SysLink version : 2.20.02.20
SysLink module created on Date:Oct 23 2014 Time:19:22:13
real 0m 0.68s
user 0m 0.00s
sys 0m 0.37s
root@dm814x:/opt/dvr_rdk/ti814x/kermod# rmmod syslink
Removed syslink kernel module
root@dm814x:/opt/dvr_rdk/ti814x/kermod# sync
time insmod syslink_old.ko 
root@dm814x:/opt/dvr_rdk/ti814x/kermod# time insmod syslink_old.ko 
SysLink version : 2.20.02.20
SysLink module created on Date:Oct 23 2014 Time:19:22:13
real 0m 0.87s
user 0m 0.00s
sys 0m 0.37s
root@dm814x:/opt/dvr_rdk/ti814x/kermod# rmmod syslink
Removed syslink kernel module
root@dm814x:/opt/dvr_rdk/ti814x/kermod# sync
time insmod syslink_old.ko 
root@dm814x:/opt/dvr_rdk/ti814x/kermod# time insmod syslink_old.ko 
SysLink version : 2.20.02.20
SysLink module created on Date:Oct 23 2014 Time:19:22:13
real 0m 0.50s
user 0m 0.00s
sys 0m 0.28s
root@dm814x:/opt/dvr_rdk/ti814x/kermod# rmmod syslink
Removed syslink kernel module
root@dm814x:/opt/dvr_rdk/ti814x/kermod# sync
time insmod syslink_old.ko 
root@dm814x:/opt/dvr_rdk/ti814x/kermod# time insmod syslink_old.ko 
SysLink version : 2.20.02.20
SysLink module created on Date:Oct 23 2014 Time:19:22:13
real 0m 0.66s
user 0m 0.00s
sys 0m 0.37s

insmod used time changes as 0.5s-->0.68s-->0.87s-->0.5s-->......

i want to know the reason time cost change.

thaks all.

 

  • Hello,

    It is normal the time to be different.

    The insmod and time are used space app. It depends of how loaded it the system at different moments when you are loading the module for example. There is to many factors on which it depends.

    What is bothering  you in this case?

    Best Regards,

    Margarita

  • hello, Margarita

    in my usecase, i need to finish system start up in very few seconds.

    so, its performances circlely change, i think there is a certain factor.

    i should know whether the factor tasks more time,if i could avoid.

    i tried many times, and many different "syslink.ko" files rebuild by me.

    all of them meet the result, first is minimum, second time 0.13s more, forth time is same as first time.

    now i don't care about the factor, and i am sure first "insmod syslink" time cost is minimun. 

    thank you for your help, and sorry for my poor english, Margarita.