Help diagnosing PC restart issue while computing matrix pseudo inverse

5 views (last 30 days)
Hi all,
I am having trouble running a code due to my PC crashing/restarting whilst running. I narrowed down that the crash occurs when trying to use pinv(). I am essentially reconstructing signals, and even with the smallest possible signal, I am required to find the pseudoinverse of a 654*4096 array (I am not sure if this should be considered computationally heavy, but you could say its my minimum requirement).
It was suggested I have a memory issue (8gb RAM) and this may be likely. I'm no expert on the specifics between physical/virtual memory, but I've tried monitoring my physical memory usage prior to crashing using the windows perfmon, and it appears that at least 1 second before crashing (perfmon logs at 1 second intervals) MATLAB is using around 5.2gb ram. Coupled with my remaining processes using ~30% RAM it appears memory could be my issue.
I just wanted to see if anyone else thinks otherwise before I go out and buy some more sticks?
Cheers.
* EDIT: I would like to add that after some debugging, I can say that my PC is crashing while trying to calculate the singular value decomposition SVD, used in the pinv() function... if that helps anyone.
EDIT 2: Tried again with 16gb ram, as well as replacing my initial 2 sticks with 2 brand new sticks, still no luck. Meanwhile my friends can run it fine with 8gb ram. The arrays being produced by the initial part of the code match between me and anyone else, apart from some random noise which is generated in y where z = pinv(x)*y. I got my friend to send over his arrays which worked for him and tried to calculate pinv( on the command line, and PC still crashes.

Accepted Answer

James Pittard
James Pittard on 19 May 2016
Thank you all for your help. I figured out the issue, I had OC'd my CPU a while ago, and despite running on 'standard performance' in my OC tool, I was still running at 4.5 GHz. Manually changing it back to default and everything works now! (12 hours later)

More Answers (2)

Ahmet Cecen
Ahmet Cecen on 19 May 2016
Edited: Ahmet Cecen on 19 May 2016
Your machine wouldn't just restart for insufficient memory, and in the case of faulty memory, the machine usually freezes. If you want to make sure, use memtest86+:

Walter Roberson
Walter Roberson on 19 May 2016
A complete crash of the system might be hardware, but... Which CPU do you have? In particular do you have an AMD Jaguar series processor?
  1 Comment
James Pittard
James Pittard on 19 May 2016
Hi, thanks for your response. I have an i5 4690k stock. I've spent the whole night reformatting and now I am waiting for MATLAB to download, will see if it changed anything for me.

Sign in to comment.

Categories

Find more on Function Creation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!