Software :: Best GCC Flags For Memory And Size?

Sep 7, 2010

I am creating a very minimal LFS distro that will be targeted towards a very low ram machine as a server.

The machine has 32MB of RAM and a P3 Processor.

I am using a flash drive as the hard drive. The flash drive is rated at 512 MB.

The processor I am not worried about but the RAM I am.

What would be the best optimization flags for RAM and Size?

I didn't set "march" to "native" because I am building the LFS distro on a much much faster PC and going to run it on the older PC.

I know: CFLAGS="-Os -s -march=pentium3" is the minimal but is there anything else?

Should I use "-march=pentium3" or "-march=i686"?

View 2 Replies


ADVERTISEMENT

Software :: How To Get Size Of Memory Used By Each Process?

Jul 25, 2009

I need to know, what process for what purpose is using memory in my machine. ps utility with various options seems to give not exactly what i want, i.e. if i sum all the values like RSS, VSZ or some other values related to memory usage, the sum is not equal (even approximately) to what i get using free|grep "buffers/cache".
How can i get this information? Even better, i would like to see contribution of every process, ramdisk, etc. to memory usage.

View 2 Replies View Related

General :: USB Memory Stick Has Doubled In Size - Why Is So?

Nov 24, 2010

I have an OCZ Mini-Kart USB stick which says 2GB on it, and it has been a 2GB stick for the last 3 years. However, I recently put it into a PC running XP (which had no viruses as far as I am aware) and all of the files in the single subdirectory became corrupted and unreadable. All files at the root of the USB stick were fine, and I could still boot from it (I had Puppy linux installed).

I looked to see if the corrupted files in the subdirectory were recoverable, but they were all inaccessible, (with freshly mangled file-names containing multiple copies of the characters '�' and '=' amongst others), and reporting file sizes of up to 1.9GB each. I examined the memory stick with fdisk and with Gparted, and saw that it was reporting two 2GB partitions, which was certainly not the case before, as I had recreated the partition table several times in the past.

I removed all partitions, created a new partition table and recreated a single partition, which is now 4GB in size. I have trashed it and recreated it three times, formatting it with ext3, ext2 and finally FAT32, all of which reported a partition size of 4GB. I currently have a 4GB FAT 32 partition, and have tested it by successfully copying a 3GB .iso file to it.

Although it's nice to have a 4GB memory stick, it does seem rather odd and I no longer trust it with my data.

View 8 Replies View Related

Debian Multimedia :: How To Decrease Video Memory Size

Jun 14, 2010

How can I decrease the amount of video memory in a debian squeeze laptop? The amount of video memory is 1GB and I want to reduce it to 512MB or 256MB. How can I do this

View 2 Replies View Related

General :: Changing Maximum Shared Memory Size

Jul 17, 2011

How do I change the size of the available shared memory on Linux?evidently 4GB is not enough for what I am doing (I need to load a lot of data into shared memory - my machine got 8GB of RAM).

View 2 Replies View Related

Hardware :: Get Hard Disc Memory Size Used And Unused Space In C/c++ Program?

Jun 24, 2009

find out the available and consumed Hard Disc memory through c/c++ program .I am using Dabian linux 2.6 I am able to get the physical memory size information by reading /proc fileI need to get information of HDD memory throug c/c

View 4 Replies View Related

Programming :: Rules To Set The Pthread Stack Size - Compute The Memory Needed By Each Thread?

Jul 26, 2010

i have an application that launches several pthreads, i know that the default size used by Linux is 8Mb for each pthread. However i would like to optimize the total memory usage by my application by decreasing the default stack size of each pthread to the needed resources. My questions:

- Are there any rules to set the pthread stack size.
- How to compute the memory needed by each thread.
- Is the malloc call inside a thread counted from the stack size of the same pthread?

View 2 Replies View Related

Programming :: Realloc(): Invalid Next Size / Getting Error With Reallocate Memory In MakeDSt Function For DSt->SArray?

Jul 19, 2011

I wrote a test program for learning usage of realloc() and I thin I did everything right but I get this error exactly with my 4th time that while tries to reallocate memory in MakeDSt function for DSt->SArray:

Quote:

realloc(): invalid next size

this is my complete code :

Code:
#include <stdio.h>
#include <stdlib.h>
typedef struct DRA
{
code....

View 2 Replies View Related

Server :: Wordpress Not Starting Properly - Fatal Error: Allowed Memory Size Of 16777216 Bytes Exhausted

Jan 11, 2010

I have recently decided to venture into online blogging and other things, and my friend told me wordpress is a great tool for this. I have set up my mysql database, and apache and php are all working fine, and when i copy my wordpress folder into my /var/www/, and edit the config file for my database, i point my browser to[URL] to get it up and running. But i only get the error: "Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7680 bytes) in /var/www/wordpress/wp-admin/includes/plugin.php on line 302". Some googleing seems to suggest that this may be a problem with a php.ini file, but im assuming this is a windows based solution, and im not sure where/what a linux alternative is.

View 4 Replies View Related

Ubuntu :: Error: Allowed Memory Size Of 20971520 Bytes Exhausted (tried To Allocate 7680 Bytes) In /var/www/index.php On Line 2

Jan 9, 2011

I recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:

Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php    include "index.php";?>
icukapi.php file:
PHP Code:
<?php    echo "test";?>

My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.

View 1 Replies View Related

Programming :: Makefile Flags ?

May 19, 2010

I have problems with linking object files.

This is what I get:

View 8 Replies View Related

Programming :: In ASM - When Will The FLAGS Will Be Reset

Mar 14, 2011

I am executiong a instruction, ADD CX, BX ;which affects the (carry flag) CF =1

Now, my question is when (CF =0) it will be reset ?

Is there any constrains for other flags/instruction to reset FLAGS?

View 1 Replies View Related

General :: List Of All UNIX Flags ?

Jun 29, 2011

I have beeen trying to find a list of all flags that can be used in UNIX and their meaning but I have had no luck.

Does anyone know if such a list exists?

If so where can I find it?

View 10 Replies View Related

Debian Installation :: Installing Metapackages With Apt-get Flags?

Jul 23, 2015

I'm researching how I want to go about making my own LXDE install without using any of the options from tasksel. I have a few questions about metapackages.

First: Will the apt-get flags "--install-suggests" and "--no-install-recommends" affect what is installed from metapackage dependencies?

For example, if I install the lxde package, it also installs lxde-core. If I do:

Code: Select allsudo apt-get install lxde --no-install-recommends will recommended packages from lxde-core also be excluded?

Second: Is there a way to automatically install the alternative "or" packages listed?

For example, [URL] lists several alternatives to the defaults: audacious instead of lxmusic, transmission instead of deluge, etc.

View 2 Replies View Related

Fedora :: Set Default Gcc Flags For Building Packages

Nov 2, 2009

I have several questions:

Is it possible to find out with which flags system was build?

Is it possible with what options and flags application was built ( mplayer for example)?

How to set default gcc flags for building packages in fedora?

View 2 Replies View Related

Ubuntu :: ERROR While Getting Interface Flags - No Such Device

Mar 26, 2011

i am trying to connect my AWUS036H to my Compaq CQ60 laptop running Ubuntu 10.10. when i check ifconfig, one minute my wlan1 is there, next minute its not, if i try to do a sudo ifconfig wlan1 up i get, wlan1: ERROR while getting interface flags: No such device and when i try it again it accepts the command no probs, i suspect this is because the device is in and out every few seconds. when i checked rfkill, i found a hard block which i resolved with unblock all, i have checked the unit under windows and it works just fine so i suspect it is a problem with my ubuntu

View 2 Replies View Related

General :: Automatically Append Flags To Certain Commands?

Feb 12, 2011

Greetings, I want to automatically append flags to certain commands. For example, when I type:

ls

at the prompt, I want the

-la

flags automatically appended without me having to type:

ls -la

View 2 Replies View Related

General :: Error While Getting Interface Flags No Such Device

Jun 28, 2011

While using wifi slax every gos ok until i get wlan0 error while getting interface flags no such device how can i fix this.

View 1 Replies View Related

Software :: Compiler Flags Are Not Used When Stored In /etc/profile

Apr 10, 2010

Running Vector Linux 6.0 light (icewm). I've always set my compiler flags at the end of my profile file in etc folder (/etc/profile). They always worked whenever it came to compiling any application (./configure && make). Since I installed vector linux they don't. I used mostly slackware in the past then switched to absolute linux. Loved it but then it got old + on reinstall it crashed on bootup with horizontal corruption on bottom half of screen! Don't know why cause everything was the same!

So obviously vector linux works somewhat different as my compiler settings are stored the same way I've always stored them in /etc/profile but they aren't being used-enforced.

Hell I even made a #/bin/bash file with | CFLAGS="blah" CXXFLAGS="${CFLAGS}" && export CFLAGS CXXFLAGS | but after making it executable they don't wanna stick. Not sure if it was done before the ./configure part of compiling though... Even if it did work it's still not the set it and forget it that I've always had with past slackware installs

How do I tell vector linux to use my compiler flags without having to make it work but typing in console | CFLAGS="-O2 -march=prescott -mtune=prescott -pipe -ffast-math -fmerge-all-constants -funswitch-loops -mmmx -msse -msse2 -msse3 -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" && export CFLAGS CXXFLAGS ./configure | everytime I wanna compile something?

I can login-stay in real-mode terminal console incase I feel like doing things outside of X. I like vector linux but I wish it was more slackware like. It seems a bit proprietary for being like slackware.

View 2 Replies View Related

Programming :: C++ - Where To Place Library Flags In A Makefile?

Apr 10, 2011

If I would normal compile using the following line:

Code:

Where should those library flags go in a makefile? Say I having the following makefile:

Code:

all: ${PROGS}

clean:

View 8 Replies View Related

Fedora Security :: Restricting Xattr Flags With Selinux ?

Jul 12, 2009

I've got a question about chattr command. is it possible to restrict a root access for this command. what i want is something similar to freebsd behaviour aka the kernel secure level. setting a particular security level results in limiting some operations (i.e changing immutable flags on files) by root. well, if someone gained an access to a machine in some way, nothing would stop him changing the file's flags. so the question is if it can be achieved with selinux?

View 2 Replies View Related

OpenSUSE :: Chromium Crashes After Enabling Stuff In About:flags

Dec 8, 2010

Chromium was running fine , till i enabled GPU Acceleration , Click2Play and tabbed preferences from "about:flags" ... Now every time i start chromium it instantly crashes..

This is the crash report :

----------- .xsession-errors ---------------------
[5095:5095:2310863628:ERROR:base/native_library_linux.cc(32)] dlopen failed when trying to open /usr/lib/chromium/libffmpegsumo.so: /usr/lib/chromium/libffmpegsumo.so: cannot open shared object file:
[5097:5097:2310891375:ERROR:base/native_library_linux.cc(32)] dlopen failed when trying to open /usr/lib/chromium/libffmpegsumo.so: /usr/lib/chromium

[Code].....

I think i need to disable GPU acceleration to get it running... so i need to disable it from a config file in /home/.config/chromium .

View 1 Replies View Related

Ubuntu Networking :: ERROR While Getting Interface Flags: No Such Device

Apr 9, 2010

I am having an odd problem with a program I'm trying to run which is supposed to connect to a network. The messages printed when I start up the program are:

SIOCSIFNETMASK: No such device
192.168.11.50: ERROR while getting interface flags: No such device
SIOCADDRT: File exists

One reason this is particularly odd is that the network itself appears to be working fine, otherwise. I can connect to the internet on my computer and everything, but the program is not able to connect to it, for whatever reason. I've tried tinkering with the settings but nothing worked.

View 3 Replies View Related

Ubuntu :: Use Flags As Language Indicators On My Gnome-panel?

May 4, 2010

I use 4 languages on my Gnome Desktop, that's the max that they allow! I also use flags as language indicators on my gnome-panel. The problem is that, I am using two Indian languages and the flags for these two is the same.. (The Indian one!) I would like to use custom flags for these two languages.. I know that I have to place them in /usr/share/pixmaps/ ..... But, how do I ensure that these two languages target two different files? Presently both the languages are using the in.png file...

View 3 Replies View Related

Ubuntu Networking :: ERROR While Getting Interface Flags: No Such Device (tried The Ra0 As Well)

Mar 29, 2011

I wanted to stop hi jacking the work around thread. I'm running Kubuntu 64 bit I started by following this walk through[URL].. everything is fine until i get to Step 5 this line :

sudo ifconfig wlan0 down (on some hardware it is ra0)I receive this output: wlan0: ERROR while getting interface flags: No such device I started browsing other threads to see what else could be happening. I ran this line : sudo lshw -C network

with an output of:
*-network:0 UNCLAIMED
description: Network controller
product: RaLink
vendor: RaLink
physical id: 0
bus info: pci@0000:06:00.0
version: 00
width: 32 bits

[Code]...

View 9 Replies View Related

Ubuntu Installation :: Compile Flags For Paralel Building?

May 28, 2011

this is how to set your ubuntu for compiling to use multi processor. some older packages require you to use only 1 processor. so comment the export make flag, then "echo $MAKEFLAGS" to see how many processors your using you might need to "source .bashrc" to update the rc file

Code:
cat >> ~/.bashrc << "EOF"
# parallel compile settings

[code]....

View 2 Replies View Related

General :: Can Both EXT4_FEATURE_INCOMPAT_META_BG And EXT4_FEATURE_INCOMPAT_FLEX_BG Flags Turn On The Same Time

Mar 16, 2010

Can both EXT4_FEATURE_INCOMPAT_META_BG and EXT4_FEATURE_INCOMPAT_FLEX_BG flags turn on the same time? If yes, I am wondering whether there is a correlation between the numbers of block groups in META group and FLEX group. Where are backups of superblock and group description table (GDT) stored in this case?

View 1 Replies View Related

Networking :: Location Of Standard Interface Flags On SUSE

Jun 15, 2010

I am reporting various network statistics in a c++ program by reading the values out of /proc. However, I am having trouble determining the link status. In particular, I am wondering:

1. How are the standard interface flags (IFF_UP, IFF_RUNNING) as referenced in if.h accessed from user land? The ifconfig man page lists its files as

/proc/net/socket (doesn't exist in suse), /proc/net/dev, and /proc/net/if_inet6. None of these seem to contain these flags.

2. ip link show reports a "NO-CARRIER" flag. How does this correlate with the "UP" and/or "RUNNING" flags as reported by ifconfig, and how is it accessed from user space?

View 1 Replies View Related

Programming :: Cannot Seem To Find Any Good Documentation On Role Of Flags

Mar 16, 2010

I cannot seem to find any good documentation on the role of flags -Bdynamic and -Bstatic in g++. The man pages are not very helpful either.I found an example on the web:"gcc object1.o object2.o -Wl,-Bstatic -lapplejuice -Wl,-Bdynamic -lorangejuice -o binary".According to which -Bstatic instructs the linker to statically link
the applejuice library and to dynamically link the orangejuice library. If orangejuice uses the applejuice library anywhere however,the applejuice is also linked dynamically. Is it correct to assume that this is correct and describes the true functionality of those two flags in gcc? (ie: Bstatic and Bdynamic are used for mixing static and shared libraries during linking)Is it correct to assume that the same applies to g++ as well?

View 2 Replies View Related

Ubuntu Networking :: Eth3: ERROR While Getting Interface Flags: No Such Device

Jun 14, 2010

yesterday without reason my eth0 dissappeared. I read through various threads, tried couple of things, and now its s back as eth3. If I bring up the network on the console it says [OK], but I cant ping my router or access any website.

BTW: During the proccess I removed network-manager-kde, which I regret now (cause I cant install it again w/o network). Even so my network was configured manually, it would be good to have it now for testing connections. The machine also got no CDROM-drive, I installed via USB.

EDIT: I booted up again, and now eth3 is gone again I get the former error message when I restart the network: "eth3: ERROR while getting interface flags: No such device"Same with all other ethX. As far as I can see w/ my basic knowledge, the realtek adapter is present and working. ifconfig only shows me "lo" nothing else.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved