LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 05: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, 05:58 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 04:30 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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, 06:12 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 07:09 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 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
Open Source Consulting | Domain Registration