LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2012, 06:49 PM   #1
Shadowolf91
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Question Help with OpenSuSe


Good Afternoon guys, i have a VM with OpenSuSe, 640mb of ram.

I need help making a program that "writes random numbers in a file four times the size of my ram, using buffered io, and direct io. ( C )

how can i do this? i don't know very much of this.. please help me!..
 
Old 06-04-2012, 06:58 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
1. I think you're going to find 640MB of RAM very challenging; I'd be surprised if it runs in that, although an OpenSuse expert may be along to correct me
2. this is obviously homework; as per LQ rules, make an attempt and show what you've got. We will help, but not do it for you
3. I recommend you use the 'Report' button to get this moved to the Programming forum, which I feel would be better for this qn
 
Old 06-05-2012, 05:30 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,059

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Quote:
Originally Posted by chrism01 View Post
1. I think you're going to find 640MB of RAM very challenging; I'd be surprised if it runs in that, although an OpenSuse expert may be along to correct me
I think I'd give an absolutely solid 'it depends' on that one. Depending on version, and which GUI you install (actually, nothing that you have said implies that you actually need a GUI at all, and if you don't install a GUI I''d have to go for 'something very easy, exactly one piece thereof', if you you go for KDE and don't turn off any of the more extravagant features, it could be quite difficult, with things like XFCE and Enlightenment being quite easy...and then you have to use it.)

If you get any weird error messages during the install that could be down to lack of RAM, and that may or may not have further implications.

Quote:
Originally Posted by chrism01 View Post
2. this is obviously homework; as per LQ rules, make an attempt and show what you've got. We will help, but not do it for you
Yes, but, we are allowed to push people. How are you getting your random numbers (there is always a question of whether they are good enough, but that hasn't (yet?) been an issue here)?

Quote:
how can i do this? i don't know very much of this.. please help me!..
To be perfectly honest, I don't know how you can do this, either. But I can say that there are usually clues in the course materials that you have so far, and, if you have been keeping up with your course, you'll usually find that the course materials immediately prior to this assignment contain some critical elements.

Also note a part of the point of this exercise seems to be 'use more ram than you've got' (and that's more ram than you had before you started using some of it for other things, like the OS itself and the utilities and compiler, so way more than you have, after using some of it for other things). Have there been any clues how how you might do that?
 
Old 06-05-2012, 07:12 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Quote:
Yes, but, we are allowed to push people. How are you getting your random numbers ...
Exactly; that's why I asked him to show his code so far.
 
Old 06-05-2012, 08:09 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
and 640 IS LOW
i installed opensuse 11.2 a bit ago on a machine with 1 gig of ram

it was " usable" ALMOST
and by that i mean 15 sec. for the HOME folder to open from the desktop and 30 to 45 sec for firefox 2 or 3 to open

suse lasted 1 day on that computer ( installed cent 5.3 instead )

now the current opensuse 12.1 runs great wit 8 gig's of ram


also
Shadowolf91 this IS homework so ...
The only way we can help is if YOU post the code you have so far
and just WHERE in it you are stuck at

THEN
we can point you in the right direction
 
  


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
OpenSUSE 12.1caught in installation loop; goal is multi-boot Win7, openSUSE & Ubuntu. chip5 SUSE / openSUSE 3 04-04-2012 05:10 AM
how to install openSuse 11 64bits on a box already has 32bits openSuse installed? 2007fld SUSE / openSUSE 7 11-28-2010 11:30 AM
LXer: OpenSUSE Conf 2009: OpenSUSE 11.2 with Microblogging, But Not WebYaST LXer Syndicated Linux News 0 09-19-2009 09:50 AM
OpenSuSE 10.3 failing to uninstall openSuSE installer from the windows boot Lucens Linux - Newbie 5 10-11-2008 09:08 AM
cannot save iptables configuration on opensuse 10.3 I have a server running opensuse lorry Linux - Newbie 2 09-26-2008 12:58 PM


All times are GMT -5. The time now is 01:00 PM.

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