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.

AM3517 nand flash as swap space

Other Parts Discussed in Thread: AM3517

We're looking into increasing the memory performance of the am3517 and we're looking into using the file system partition of the nand flash as a linux swap partition.  I was wondering if there are any concerns in doing this.  How many read write cycles does the nand flash have?  Is hardware wear leveling built into the nand flash? If we created a 2nd swap partition on a SD card, does having mulitple swap partitions of different speeds effect things?

Bryan Richmond

  • The first question to ask is, have you already decided that just not having swap is insufficient for your application?

  • well..our applications are fairly cpu intensive, so we're doing quite a bit of caching to help with this, and we quickly maxed out our ram.  We're using the logic PD am35x SOM-M2 evm development kit right now,  and we're trying to emulate our expected loads on this chip right now.  So I'm just wondering if its ill advised to use flash memory for swap space due to the constraints on read and write cycles.  

  • OK.   Historically, it's not been a good idea to use NAND or similar for swap space, especially in production.  And since your application is driving this by running out of system memory, you may be well served to first see if there's other running things you can stop running, then add some swap space.  But, if you go the route of swap space and it's because your applications can't fit in memory, well, you may not have the performance you need.