LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-01-2016, 12:04 PM   #1
srivatsa231181
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
MemFree depleted in /proc/meminfo when writing to flash memory


Hi,

I have a problem where I am writing a 14 MB file into the flash memory. This will be a partition on the ext4 filesystem. However, when I do this, I see that MemFree in /proc/meminfo is decreasing by ~28MB. Could you please let me know why writing into flash reduces memory in RAM? What interactions do flash and RAM have here? I expected none.

If I delete the file, I regain "most" of the memory back. Why does this happen?

One more info that I need here. The "Active:" in /proc/meminfo increases with the write file action, and does not clear up with the file delete. It is "held up". Could you please let me know why does this happen?

Regards,
Srivatsa
 
Old 09-01-2016, 02:17 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
What kind of flash memory is it? If it's acting like a 'disk' then what's probably happening is that the file gets written into memory first before the fsync happens.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slab entry at /proc/meminfo indicates kernel memory footprint? matiasar Linux - Kernel 2 07-07-2014 08:26 AM
Discrepancy In Reported Memory Between (BIOS ,MCC) & (/proc/meminfo, kinfocenter) sleepyz Linux - General 3 08-13-2008 09:10 AM
Is the Memory info given by dmesg and /proc/meminfo same? sameeruj Linux - General 1 09-13-2007 08:46 AM
/proc/meminfo hiding some memory? elpy Linux - Hardware 3 07-28-2007 11:26 AM
Maximum memory reported by /proc/meminfo in vanilla 2.4.26 kobica Linux - General 0 11-15-2004 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration