2010-09-23 01:11:00     rootfs size

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-09-23 01:11:00     rootfs size

svs k (INDIA)

Message: 93775   

 

Hi all,

 

I m currently using initramfs for rootfs.  My application executable  file in rootfs totally is around 5 M size. I thought after running the application if the executable is  deleted, free memory would increase. I was able to delete the file after the application is launched. but i could not find any change in the free memory still.  Kindly tell me why this happens and also suggest is there a way to increase the free memory by removing this executable.

QuoteReplyEditDelete

 

 

2010-09-23 01:45:57     Re: rootfs size

Mike Sinkovsky (RUSSIAN FEDERATION)

Message: 93776   

 

I think real question here - does initramfs filesystem support XIP?

 

If yes, no need to delete file for freeng memory, application file running application will use same memory..

QuoteReplyEditDelete

 

 

2010-09-23 02:14:18     Re: rootfs size

Mike Frysinger (UNITED STATES)

Message: 93777   

 

all ramfs filesystems should allow direct mapping

QuoteReplyEditDelete

 

 

2010-09-23 07:37:01     Re: rootfs size

Mike Sinkovsky (RUSSIAN FEDERATION)

Message: 93798   

 

Then XIP from initramfs in 2010R1 works by default for FDPIC ELF programms, or need some configuration?

QuoteReplyEditDelete

 

 

2010-09-23 15:20:28     Re: rootfs size

Mike Frysinger (UNITED STATES)

Message: 93806   

 

i belive that is correct.  2010R1 has seen a lot of low level work to avoid useless copies/flushes/etc...

QuoteReplyEditDelete

 

 

2010-09-30 01:12:20     Re: rootfs size

svs k (INDIA)

Message: 93997   

 

Sorry If i m wrong. Actually, i didnt get exactly what you mean.

 

I m working in 2009R1- RC7 distribution. I m trying to do memory analysis for my application.

 

I have an EXE file (APPL_TEST = 2.9M) and a binary file (APPL_BIN = 3.1M).  bfin-linux-uclibc-size APPL_TEST returns 19MB. around. I did the following test .

 

Test 1:

 

1. TFTP the Application and Binary File, Run and Test.

 

 

Actions Taken     Free Memory     Used Memory(KB)     Used Memory(MB)

Initial  Memory     117592           

After TFTP APPL_TEST     114652     2940     

After TFTP APPL_BIN     111404     3248     

After running the application     72060     39344     45532

remove APPL_TEST     72060     0     

 

Clarifications:

 

1. After removing the APPL_TEST file after running, there is no increase in free memory.   If XIP is there, I understand, total memory taken by the application after it is run, is 44M.  Is my understanding right?

 

Kindly clarify.

QuoteReplyEditDelete

 

 

2010-09-30 01:17:13     Re: rootfs size

svs k (INDIA)

Message: 93999   

 

Sorry in my previous question the last column in the table is actually, total used memory in KB.

Actions Taken     Free Memory     Used Memory(KB)     Total Used Memory (KB)

Initial  Memory     117592           

After TFTP APPL_TEST     114652     2940     

After TFTP APPL_BIN     111404     3248     

After running the application     72060     39344     45532

remove APPL_TEST     72060     0     

 

---

QuoteReplyEditDelete

 

 

2010-09-30 01:19:14     Re: rootfs size

Mike Frysinger (UNITED STATES)

Message: 94000   

 

simply looking at the sum totals doesnt work.  you need to dive into the broken out info in /proc/meminfo.

 

are you sure your application is no longer running ?

QuoteReplyEditDelete

 

 

2010-09-30 01:33:03     Re: rootfs size

svs k (INDIA)

Message: 94001   

 

Actually, In main(), in the beginning itself i called while(1).

QuoteReplyEditDelete

Attachments

    Outcomes