View previous topic :: View next topic |
Author |
Message |
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Thu Feb 07, 2008 9:05 pm Post subject: |
|
|
I will, just that I had some other problem to work on today, and will probably continue tomorrow. I just bumped into the fstab entry, that's why I posted it. _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Feb 07, 2008 9:14 pm Post subject: |
|
|
Chymera wrote: | ) I'm sure everybody got this problem and they all found a solution to something as unspecific as this through google... I suggest you start thinking before posting once in a while and maybe after you do it a couple of times you'll get used to it.
Why don't you stop wasting our time (although yours is probably going to get wasted anyway), and just shut up if you don't have anything on-topic to say. If you really can't think of any better place to kill your time than other people's threads, remember, google is your friend |
Most of your posts seem to be unfriendly, borderline attackish. Consider this the final warning to change your tone, failure to do so will result in your account being banned without further notice. _________________ KDE |
|
Back to top |
|
|
salmonix Guru
Joined: 16 Jul 2006 Posts: 410
|
Posted: Thu Feb 07, 2008 11:36 pm Post subject: |
|
|
Chymera wrote: | I ran across something in my fstab which concerns ram as far as I can tell....
Code: | shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
should I add some other options... do you all have this entry? |
Nothing necessarily - it is a "ramdisk", and should not concern here.
However, check one thing: exit an app that U use and check its probable presence.
Eg.
ps aux | grep -i *appname*
With me it seems to happen when I close worker (a file manager) via closing its window it is still up. Surely, vlc (media player) should be killed 2 times to die. That means that if U are unaware you might open them without closing the prev.instance.
On the other hand upgrade your python. If the problem is still there, then to be continued. _________________ Quis custodiet ipsos, custodes? |
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Fri Feb 08, 2008 11:32 am Post subject: |
|
|
@Sneptune: I finally started trying out what you said....
hdparm -i /dev/sda returned the following:
Code: | Model=WDC WD800JD-22MSA1 , FwRev=10.01E01, SerialNo= WD-WMAM9LX43833
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=65
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7
* signifies the current active mode
|
The disk is sata. I still have 2 older ide drives though... sdb and sdc
hdparm -Tt /dev/sda returned:
Code: | /dev/sda:
Timing cached reads: 6414 MB in 2.00 seconds = 3210.24 MB/sec
Timing buffered disk reads: 172 MB in 3.01 seconds = 57.10 MB/sec
|
and although I'm sure I downloaded and compiled the nvidia drivers, and added them as modules (I even managed to run compiz yesterday), glxinfo returns: Code: | Error: unable to open display (null) |
What is HIGH MEMORY? How do I fiond out if I have it? and yes, my system is 64bit, and I use Gentoo amd64.
As for the modules I believe I only have a few (3-4), and none which I don't use... but how can I find out for sure? _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
SnEptUne l33t
Joined: 23 Aug 2004 Posts: 656
|
Posted: Fri Feb 08, 2008 6:55 pm Post subject: |
|
|
Chymera wrote: | @Sneptune: I finally started trying out what you said....
hdparm -i /dev/sda returned the following:
Code: | Model=WDC WD800JD-22MSA1 , FwRev=10.01E01, SerialNo= WD-WMAM9LX43833
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=65
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7
* signifies the current active mode
|
The disk is sata. I still have 2 older ide drives though... sdb and sdc
hdparm -Tt /dev/sda returned:
Code: | /dev/sda:
Timing cached reads: 6414 MB in 2.00 seconds = 3210.24 MB/sec
Timing buffered disk reads: 172 MB in 3.01 seconds = 57.10 MB/sec
|
|
That's strange. It looks like you don't have DMA enabled even though it is supported. What is the output of :
If it said using_dma = 0 (off), you should be able enabled it with:
Code: |
# hdparm -d1 /dev/sda
|
I just noticed that if you are using SATA, you wouldn't be able to set DMA using hdparm -d1. Your buffered disk reads speed concern me though. Is that a laptop? Your harddisk shouldn't be as slow as my Pentium 3's.
Chymera wrote: |
and although I'm sure I downloaded and compiled the nvidia drivers, and added them as modules (I even managed to run compiz yesterday), glxinfo returns: Code: | Error: unable to open display (null) |
What is HIGH MEMORY? How do I fiond out if I have it? and yes, my system is 64bit, and I use Gentoo amd64.
As for the modules I believe I only have a few (3-4), and none which I don't use... but how can I find out for sure? |
You need to run glxinfo in X. Try starting X as root using startx and execute glxinfo. I don't know about compiz, you may want to disable it for now (including composite support in X) until you get your system to a working state.
If you are using AMD64, then you don't have to worry about HIGH MEMORY. Regarding modules, it would be best not to compile in drivers you don't need, not even as modules. _________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 556
|
Posted: Fri Feb 08, 2008 7:27 pm Post subject: |
|
|
maybe u have enabled 'beagle' support for ur GUI
that's a system wide indexer which always running and eat your hard disk _________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Sat Mar 15, 2008 10:10 pm Post subject: |
|
|
# hdparm /dev/sda returns
Code: | /dev/sda:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 9729/255/63, sectors = 156301488, start = 0
|
But then again, isn't dma needed only for ide drivers?
@ sneptune: No it's not a laptop, the hardware specs are, although I'm sure I've already posted part of this: asus P5B premium edition motherboard (intel P965 chipset) / intel Core2Quad processor @2.4GHz / 1GB DDR2 / Nvidia GeForce 7300 / 2x ide HDD + 1x SATA HDD / many many coolers
this definetly isn't a hardware problem, I booted from the live cd and, at least the gui is blazing fast compared to what i see now...
@honeymak: wouldn't it be showing in my system monitor? _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 556
|
Posted: Sun Mar 16, 2008 8:41 am Post subject: |
|
|
maybe u can top it or atop it or dstat or vmstat and see the result
i think maybe u dun do tests under any X env to make it little bit clear
and do u modify kernel? or any special CFLAGS?
becoz sometimes some flags move code and results distorted
too heavily optimised doesn't mean fast......becoz just lead to resources racing _________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
node@are-b.org n00b
Joined: 20 Apr 2005 Posts: 44
|
Posted: Mon Mar 17, 2008 3:08 pm Post subject: |
|
|
In fear of being shouted at, or made fun of by the OP i'm going to try to go out on a limb and assist here, I hope I won't get to regret it by being offended.
I actually went as far as to install exaile to see if I can reproduce your problem. So I emerged it, and loaded bout 5k songs give or take into it. First thing I noticed was that indeed, memory usage grew as it was indexing my files, something to be expected. Appearantly exaile likes to keep all song information in memory, that's fine, but expect high memory usage.
So before I start, here's my output of running exaile, with 5k songs imported over NFS (100mbit), audacious streaming ahdjs firefox with 11 tabs open and 7 virtual desktops. I'm running this all on a AMD64 X2 2.4ghz. Since last week i'm actually running gnome nowadays, I used to be using XFCE4.
Code: |
top - 15:44:34 up 1:06, 5 users, load average: 0.80, 1.65, 1.38
Tasks: 120 total, 1 running, 119 sleeping, 0 stopped, 0 zombie
Cpu0 : 4.0%us, 0.7%sy, 0.0%ni, 95.0%id, 0.0%wa, 0.3%hi, 0.0%si, 0.0%st
Cpu1 : 4.6%us, 0.3%sy, 0.0%ni, 95.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2074340k total, 1153000k used, 921340k free, 69204k buffers
Swap: 2313344k total, 0k used, 2313344k free, 572096k cached
PID USER PR NI VIRT RES SHR SWAP S %CPU P %MEM TIME+ COMMAND
4885 oliver 20 0 116m 19m 12m 96m S 5 0 1.0 2:58.51 audacious
4466 root 20 0 406m 96m 15m 310m S 4 0 4.8 2:33.25 X
4719 oliver 20 0 17024 9.9m 8144 6892 S 1 0 0.5 0:10.52 metacity
4845 oliver 20 0 272m 159m 25m 113m S 1 0 7.9 2:50.52 firefox-bin
4865 oliver 20 0 52932 17m 8328 34m S 1 0 0.9 0:11.88 Terminal
916 oliver 20 0 2244 1168 868 1076 R 0 1 0.1 0:00.60 top
4725 oliver 20 0 47536 16m 11m 30m S 0 0 0.8 0:08.22 gnome-panel
4823 oliver 20 0 18932 8380 6772 10m S 0 1 0.4 0:03.82 multiload-apple
6510 oliver 20 0 54816 14m 10m 39m S 0 0 0.7 0:08.89 gnome-volume-co
32210 oliver 20 0 110m 52m 16m 57m S 0 0 2.6 0:35.56 exaile |
First thing to notice, is yeah, I'm using JUST a bit over a gig, but I doubt that would be the case if I only had 1 Gig. I totally agree with you btw, that you don't need that much ram. (I just bought 2 gigs since this board will have to last me a while is all, and it only had 2 slots. getting 2x512 was silly, and 1x gig and upgrade later was not as wise, since i wouldn't be using dual channel)
First thing I notice, that surprises me is that audacious is using a lot of mem, but then again, it's not that great of a player to begin with. X seems to be very memory hungry at the moment, I'm not sure if it's caching things itself, and I'm not even very informed on the 'virtual memory' thing.
So next thing to notice is that FF (2.0 mind you, the big memory hog, not the soon to be released 3.0 FF with loads of memory improvements) isn't using gigantic mounts of ram. Even exaile is using 'only' 110 or so of mem. Also notice, no python showing up at all.
X's memory footprint might be so huge atm is something i'm unsure of. I blame the ATi driver, since that used to be a memory hog on my windows installations (I tried to skim XP down to 26mb of memory usage, which I could do, but whenever I installed the ATi driver, it went upto 62mb or so. Go figure).
In short, can I reproduce your problem? Nope I can't. Now to examine your problem further. That swap is used, shouldn't cause any problems. True, using swap usually indicates that you're low on memory, but it can also mean that the kernel just swapped out memory that hasn't been used in ages, depending on your swappiness value. So let's not look too deep into that. Also, you may have a memory leak, which causes this obviously to happen as well.
So first thing to figure out, does this all happen on a freshly booted, system aswell. If it's a small-ish memleak, it won't pop up for a while, which might be why I can't seem to find the problem on my system.
So by the process of elimination, a few things to look at. I have FF open for days myself, so I'm not pointing the finger at FF just yet. Be sure to disable any FF addons though, I don't have many myself, but it might be you have a leaking FF addon. Try using your system for a few hours without exaile running. This isn't a solution, it's trying to isolate the culprit. Audacious works fine-ish, and so does totem. Even rythmbox isn't so bad. (Isn't banshee a mono app? (ergo .net)? no thanks on that if so).
Right, if it turns exaile/python are the reason that thigns are going haywire, good, if not, we'll have to investigate more.
P.S. if you hit 'shift-m' in top, it'll sort by memory usage. very convenient in this case if you ask me.
For now, i'll keep exaile running looping 1 tune, with a big library loaded and see if it pops up.
Note: I'm using ~x86 arch, not amd64 or ~amd64. My system is a smooth as ever, but for visual perception, getting your nVidia driver working could improve the 2D by a lot.
P.S.S.
HDparm etc outputs for one of my raid1 raptors:
valexia ~ # hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1506 MB in 2.00 seconds = 752.95 MB/sec
Timing buffered disk reads: 252 MB in 3.01 seconds = 83.59 MB/sec
valexia ~ # hdparm /dev/sda
/dev/sda:
IO_support = 0 (default)
16-bit)
HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
HDIO_GET_DMA failed: Inappropriate ioctl for device
HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
readonly = 0 (off)
readahead = 256 (on)
geometry = 9039/255/63, sectors = 145226112, start = 0
I think the DMA etc it can't get from Sata drives, as those always use DMA, as you mentioned yourself, DMA is nowadays only set for IDE drives.
To compare it with both disks btw (ePeen mode)
valexia ~ # hdparm -t /dev/md1
/dev/md1:
Timing buffered disk reads: 486 MB in 3.00 seconds = 161.80 MB/sec |
|
Back to top |
|
|
node@are-b.org n00b
Joined: 20 Apr 2005 Posts: 44
|
Posted: Mon Mar 17, 2008 11:32 pm Post subject: |
|
|
Update
After having exaile (and the rest of my system) up since then, here's an update top printout.
Code: | top - 00:30:26 up 9:52, 5 users, load average: 0.51, 0.32, 0.28
Tasks: 120 total, 1 running, 119 sleeping, 0 stopped, 0 zombie
Cpu0 : 5.0%us, 1.0%sy, 0.0%ni, 93.7%id, 0.0%wa, 0.3%hi, 0.0%si, 0.0%st
Cpu1 : 5.0%us, 1.0%sy, 0.0%ni, 94.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2074340k total, 1326428k used, 747912k free, 27884k buffers
Swap: 2313344k total, 284k used, 2313060k free, 798580k cached
PID USER PR NI VIRT RES SHR SWAP S %CPU P %MEM TIME+ COMMAND
4845 oliver 20 0 288m 163m 27m 125m S 0 0 8.1 16:30.90 firefox-bin
4466 root 20 0 421m 111m 17m 309m S 2 0 5.5 20:56.51 X
4667 root 20 0 421m 111m 17m 309m S 0 0 5.5 0:00.00 X
32379 oliver 20 0 144m 58m 17m 85m S 2 0 2.9 14:32.40 exaile
4729 oliver 20 0 98.7m 40m 20m 58m S 0 0 2.0 0:50.15 nautilus
4725 oliver 20 0 58328 20m 14m 36m S 0 1 1.0 0:37.49 gnome-panel
32318 oliver 20 0 107m 18m 12m 89m S 7 0 0.9 32:25.93 audacious
4865 oliver 20 0 53316 17m 8528 34m S 0 0 0.9 0:38.54 Terminal
6510 oliver 20 0 54816 14m 10m 39m S 0 0 0.7 1:32.34 gnome-volume-co
4817 oliver 20 0 43920 13m 9704 29m S 0 0 0.6 0:14.93 mixer_applet2 |
Other then maybe the mixer having a mem leak (it's using far to much mem for a mixer) it's pretty much the same. exaile did grow a few megs (about 50% more) python still doesn't show, i doubt it's combined with exaile. nautilus isn't slim either, but acceptable still.
In the last few hours I was browsing the web, browsing files (nfs shares and desktop, big lists at that) and played 3 hours of WoW in wine. (which is memory hungry too)
No reboot, no app crashing/restarting etc. |
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Wed Mar 19, 2008 8:53 pm Post subject: |
|
|
although I really liked it I have given up exaile, and I am using quodlibet now. However this has done NOTHING to help solve my speed problem. The amount that the music player isn't hoging is now being hoged by either nautilus, firefox or X, or any combination of them. This is outrageous, the good thing is that my computer gets just as slow without compiz as it gets with it, so at least i can enjoy some nice effects until I have to restart.
an other detail I noticed is that my system becomes INCREDIBLY slow after using the gimp (after, as in after I close it), same goes for whenever I have been using a single app extensively and go back to doing other things.... Also nautilus is incredibly bad (turns gray, sometimes needs to be killed) at opening any picture directory with something like 800 files or more, this is really bad for me since I work with a lot of photos
There's no reason to think I might jump you because you're helping me... The reason why I couldn't stand half the people who answered was that they just saw a catchy thread name and jumped to conclusions without even browsing through the first posts... and kept insisting..., too bad that some moderators who seem to also miss the "read the thread" part helped give everybody who takes a look that impression. _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 556
|
Posted: Thu Mar 20, 2008 4:32 pm Post subject: |
|
|
what ur cflags and ur cpu arch?
maybe something is not good for u _________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Thu Mar 20, 2008 5:04 pm Post subject: |
|
|
suggestions:
ad firefox-problem: try firefox 3.0beta4 (backup bookmarks before you switch), that'll cut memory usage at least by half
ad python: python-2.4* is fine, I'm using it here with ~amd64 profile (2.5 masked), since apps like bibus don't work with 2.5
ad: gcc-4.1* <-- this compiler is bad IMO, I had some oom / high memory usage experiences with it, I'm using gcc-4.2.3 right now & no such (ok, this baby has 4 GB of ram & snort running but on another old laptop with 1 GB of ram it was fine too), so consider switching to ~amd64 (testing) branch & keeping some if your toolchain at stable - works fine for me
when starting gcc-4.2* you can use -march=native will produce much better code,
ad gcc: consider using -D_FORTIFY_SOURCE=2 and some other save "optimizations" which lets your stuff run better
ad cflags / cxxflags: -march=native -O2 -pipe -D_FORTIFY_SOURCE=2
should be bare minimum
now show your teeth, tiger,
good luck _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
node@are-b.org n00b
Joined: 20 Apr 2005 Posts: 44
|
Posted: Thu Mar 20, 2008 8:12 pm Post subject: |
|
|
Maybe the high memory usage is from using a 32bit arch? Should be, but I do remember one of the disadvantages of having a 64 arch is 64 bit pointers, rather then 32bit, double the mem usage!
Well exaile has a memory leak, a small one, but a leak nevertheless.
Natuilus should be able to handle 800 images without a hitch. It might recuire a few seconds to read the directory though, which is based on your diskspeed, so you can't blame nautilus for that. But shouldn't be to crazy long. After it loaded the directory contence, nautilus/gnome-thumbailer will start to thumbnail those images, reading/writing to your disk, but it does so in the background, without hogging nautlius.
I'm also using gcc 4.2.3 out of ~x86 on my Amd64. Though those are minor optimizations, not changes that will reduce your memory footprint by 50%+ ...
Right now, i'm leaning towards a missconfigured video driver, however that would only explain memory usage of the X server, and your speed problems. Then again, if your using compiz, that basically should be fine ..
(glxinfo | grep -i direct should read Direct Rendering Yes or along those lines)
Something is somewhere missconfigured. You did mention running a liveCD version of gentoo/ubuntu was fine? Reinstalling isn't really an option, but do you have some partition with a few gig available to install ubuntu/reinstall your gentoo? See if the memory usage is as insane there aswell. Though ubuntu is a bit bloaty, and slower then your average gentoo, it's still a mighty fine OS. I use it on my laptop exclusisvly nowadays, cause i got fedup with not being able to configure my wireless at school, with wpa enterprise n stuff. Maybe if i installed network-manager on my laptop life will become sweet on gentoo again too, though I like the 'it just works' attitude I have with ubuntu atm. Desktop stays gentoo, no question about it. Though I'll admit I have the ubuntu themes installed ..anyway, drifting offtopic here. |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Thu Mar 20, 2008 9:28 pm Post subject: |
|
|
yep, that's what I was planing to say, not to mention it would be stupid to run 32bit on a 64bit system just because some things have minor issues with 64bit.
Especially now I wwant to have a reliable system, without the risk of getting into more trouble then I can handle in a maximum of one afternoon. so I'd rather stick to non-"~" stuff, especially when it's something as serious as a compiler... as for the rest.. I really didn't understand what you were trying to say about nautilus, node. you mean having to wait 5 seconds for a folder to open isn't much? hell, windows XP opens such a folder in max 2 second on a system with one quarter the processing power and half the ram as this one....
Code: | glxinfo | grep -i direct | returns Code: | direct rendering: Yes |
and kerneloftruth, please explain the following stuff in more detail, maybe it's just the late hour but I don't understand a thing
Quote: |
ad gcc: consider using -D_FORTIFY_SOURCE=2 and some other save "optimizations" which lets your stuff run better
ad cflags / cxxflags: -march=native -O2 -pipe -D_FORTIFY_SOURCE=2
should be bare minimum |
also if you mean i should acquire smth it's "add" not "ad", "ad" is in the same direction as publicity, but then again maybe you mean smth totally different. _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Thu Mar 20, 2008 10:25 pm Post subject: |
|
|
Hi Chymera,
first to clear what "ad" means:
Quote: | also if you mean i should acquire smth it's "add" not "ad", "ad" is in the same direction as publicity, but then again maybe you mean smth totally different. |
in that context:
Quote: | ad (Lateinisch) [Bearbeiten]
Präposition [Bearbeiten]
Bedeutungen:
[1] an, bei, zu (beim Akkusativ)
Herkunft:
Beispiele:
[1] Pater ad me fuit. (Mein Vater war bei mir zu Besuch.) |
so practically - for the non-German-speaking readers: ad == concerning point ...
(sorry, I'm reading that "term" almost everyday in the lecture notes [in medical context], so I got somehow used to using that too )
on to the stuff I mentioned:
Quote: | -D_FORTIFY_SOURCE=2 |
Quote: | During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain '%n' are blocked. If an application depends on such a format string, it will need to be worked around.
Note that for this feature to be fully enabled, the source must also be compiled with -O2 or higher.
|
concerning -march=native:
Quote: | -mtune=native and -march=native will produce code optimized for the
host architecture as detected using the cpuid instruction. |
other "optimizations", which work fine for me:
Code: | -fforce-addr -combine -funroll-loops -fsplit-ivs-in-unroller -fvariable-expansion-in-unroller -fpeel-loops -funswitch-loops -falign-functions=0 -falign-jumps=0 -falign-labels=0 -falign-loops=0 -fearly-inlining -ffunction-cse -fgcse-after-reload -fgcse-sm -fgcse-las -fmerge-constants -fno-ident -fomit-frame-pointer -fprefetch-loop-arrays -mmmx -msse -msse2 -msse3 -s -Wno-error -fivopts -fmodulo-sched -freschedule-modulo-scheduled-loops -ftree-loop-im -ftree-loop-ivcanon -ftree-vectorize |
note, that Code: | -fpeel-loops -funswitch-loops -funroll-loops -fprefetch-loop-arrays -ftree-vectorize |
are considered to be unsafe/unstable,
I didn't have any problems with them so far,
my main intent for my systems isn't speed but speed & most security I can get for as little tradeoff as possible ...
- in the case of pure speed + stability I would have chosen: Code: | -march=native -O2 -pipe -D_FORTIFY_SOURCE=2 | which might be the right starting-point for you
Quote: | Portage 2.1.4.4 (unavailable, gcc-4.2.3, glibc-2.7-r1, 2.6.24-zen4-pax_r2 x86_64)
=================================================================
System uname: 2.6.24-zen4-pax_r2-g98ef78de-dirty x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Unknown
dev-lang/python: 2.4.4-r9
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1, 2.18.50.0.4, 2.18.50.0.5
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
|
I'm using hardened toolchain / hardened gentoo (+ -fforce-addr flag), the side-effect of that is, that it "fixes" some errors in behavior with apps ...
more information on hardened-stuff used:
http://wiki.debian.org/Hardening
there still seem to be problems with >=linux-headers-2.6.23 so use 2.6.22 instead (e.g. proftpd)
any confirmations on fixes for this statement ? _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Thu Mar 20, 2008 11:02 pm Post subject: |
|
|
I still haven't the faintest idea what you're suggesting, were those things you mentioned code? should I add them somewhere? where?
Am I to understand from your last statement that the last kern version has issues? _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
guruvan Tux's lil' helper
Joined: 21 Aug 2007 Posts: 132
|
Posted: Thu Mar 20, 2008 11:04 pm Post subject: |
|
|
There's so much fighting on this thread..- admins need bigger LARTs!!
so I didn't read it all, nor did I have specifically relevant suggestions.....just a general one:
When I'm hunting for problems in the machine, I find that the output of top is much more useful in conjunction with the output of "vmstat 5" or "vmstat 1" remember to ignore the first line of output from vmstat as that is cumulative since bootup.
With the two of these running side by side, I can have a much better idea of what part of the machine is being slow (disk, cpu, gpu, net, ram, etc). Further, when I have these somewhat baselined (whether baselined for a well-running system, or a poorly running one) I can then start throwing big known loads at different subsystems to see which one is sluggish. You can then plot the performance with vmstat and see the offending processes simultaneously in top. top is great for finding sporadic bad processes, but not good for deep-rooted problems.
once you know for sure what part of the machine os being slow, it should be much easier to effect some kind of change.
good luck! (if this suggestion doesn't help, just ignore it) _________________ Everything is broken......(b.dylan).
guruvan |
|
Back to top |
|
|
node@are-b.org n00b
Joined: 20 Apr 2005 Posts: 44
|
Posted: Fri Mar 21, 2008 5:24 pm Post subject: |
|
|
I totally agree about the nautilus issue. It takes about 1.5 - 2 second to open my home folder (that's including the loading of nautilus) which has about 665 files in it.
Remember, that winXP might be a lil faster, as it doesn't have to render thumbnails, though I'm sure nautilus does that after it loaded the filelisting. I do have a nautilus from ~x86 (and one from the gnome overlay) so some of your issues might be long resolved in the newer nautilus? No idea tbh.
As for ~x86 vs x86 ... ~arch basically says the ebuilds are in testing, not the software itself (generally anyway). Personally I've had more problems with x86 then with ~x86, but that's cause most problems I can troubleshoot (with or without bugs.gentoo.org). x86 seems to sometimes to have issues with combination of packages, due to bad testing/QA.
And then x86 vs amd64 ... Back when I installed this box, which was in 2002? I belive, I didn't have an 64bit capable CPU. I since then just upgraded (copying harddrives when applicable, though these harddisks I've had pre-64bit times).
I think however 64 bit issues are mostly/only with closed source software. Almost all OSS works just fine. 32b/64b issues are usually in regards with drivers (ati has closed 64bit drivers) and flash. There's no 64bit flash. Last time I checked, you had to run a 32bit firefox to use the 32bit flash. win32codecs has a win64codecs replacement nowadays I belive. And then finally, I'm not sure how a 64bit wine works with 32bit software/games. But I agree with you, I could 'upgrade' to 64 bit one of these days without to much fuss I reccon.
Back to your problem however. I know it won't help much, but it's a problem somewhere in your setup, and we still gotta hunt it down |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Wed Apr 02, 2008 7:18 pm Post subject: |
|
|
guruvan wrote: | There's so much fighting on this thread..- admins need bigger LARTs!!
so I didn't read it all, nor did I have specifically relevant suggestions.....just a general one:
When I'm hunting for problems in the machine, I find that the output of top is much more useful in conjunction with the output of "vmstat 5" or "vmstat 1" remember to ignore the first line of output from vmstat as that is cumulative since bootup.
With the two of these running side by side, I can have a much better idea of what part of the machine is being slow (disk, cpu, gpu, net, ram, etc). Further, when I have these somewhat baselined (whether baselined for a well-running system, or a poorly running one) I can then start throwing big known loads at different subsystems to see which one is sluggish. You can then plot the performance with vmstat and see the offending processes simultaneously in top. top is great for finding sporadic bad processes, but not good for deep-rooted problems.
once you know for sure what part of the machine os being slow, it should be much easier to effect some kind of change.
good luck! (if this suggestion doesn't help, just ignore it) |
++
I personally use dstat for these sort of issues, I just let it run with top in another window. Gives me data on if my CPU is stuck in IOWait, it its busy dealing with interrupts (should never happen), if its too busy context switching, what my net and disk performance are, etc...
Might help in this case to look at your system as whole. For example, of your CPU is being used on IO wait but you're getting pitfully small writes and reads off your disk, you're either swapping hard or your disk is failing/bad driver.
Poke around, see if you can find any correlation between performance and lines in dstat/top (ie snapshots of when things are the slowest) could reveal what your system is doing at the time.
DSTAT also has options to get more detailed CPU, memory, net, and disk information, should we need to dig deeper. _________________ I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it. |
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Fri Apr 04, 2008 7:22 pm Post subject: |
|
|
Could you tell me exactly waht to do / look for? Perhaps in some greater detail? I'm staring at the top output and I really can't make anything out of it except that certain processes eat too much memory at times... _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
guruvan Tux's lil' helper
Joined: 21 Aug 2007 Posts: 132
|
Posted: Sat Apr 05, 2008 12:46 am Post subject: |
|
|
too much is a relative thing:
this is pretty common for how I run my desktops
Code: |
4991 user 20 0 287m 154m 28m R 4.0 7.7 114:14.94 133m 337 seamonkey-bin
5268 user 20 0 549m 287m 6160 R 3.0 14.3 293:22.74 261m 12 X
5226 user 20 0 21456 9m 8356 S 0.7 0.5 61:26.72 10m 4 ktip
|
and as far as exactly what to look for - you know the old saying "I can't define "obscenity" but I know it when I see it" ...that's how you have to hunt for problematic anomalies in a system. That dstat program was great at showing that. with that you can pretty easily see in one place how one action affects the rest of the machine, and have a better idea what you can fix or tune. Keep that running & use the machine, look at the history, and think where was the machine unresponsive, what systems were being used, were they within expected limits, or being taxed? Then maybe run some tests that exercise the subsystem in question...all the while narrowing down to some specific thing. sometimes you have to use a few different tools, and some raw imagination to find the root of the problem. _________________ Everything is broken......(b.dylan).
guruvan |
|
Back to top |
|
|
Chymera Apprentice
Joined: 13 Sep 2007 Posts: 245 Location: Zürich
|
Posted: Wed Apr 09, 2008 7:33 pm Post subject: |
|
|
As a conclusion to the most pointless thread I've ever made, I can't believe I have a computer which can run stuff like vista blazing fast and I have spent more then two months TRYING to get it to be less-than-sluggish on the self proclaimed fastest linux distribution...
I have nothing against investing time in configuring the system myself as long as it has any purpose, but all I can see for now is that gentoo is just as slow as the ubuntu-bloat and a lot slower than vista, and I'm not even going to mention XP64. Is the linux kernel borken? or is a quad core cpu just too much for it? or is 1gb of ddr2 ram not enough for such a "lightweight" system (actually considering the stuff that gets downloaded by portage gentoo is not lightweight at all)?
Or is it just that some applications (nautilus, firefox, exaile, amarok, quodlibet, OO, compiz, gimp, gnome image viewer, portage, gnome panel, xserver, evolution, epiphany etc.) have problems? Not to mention that I get system crashes at least twice a week and application crashes at least twice a day, and that some applications won't even launch? And yes, I have wasted enough time investigating each and every one of them...
Is everybody else too much of an open source (and all that hippie ideology) zealot to realize that most open source applications are a shipload of bugs, or am the only person in the world for whom besides the obvious advantages of customizability and security everything that goes by the name of linux has proven to be the epitome of poor quality software? _________________ Check out my initiative to bring Neuroscience software to Gentoo - NeuroGentoo! |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Wed Apr 09, 2008 8:19 pm Post subject: |
|
|
Chymera wrote: | As a conclusion to the most pointless thread I've ever made, I can't believe I have a computer which can run stuff like vista blazing fast and I have spent more then two months TRYING to get it to be less-than-sluggish on the self proclaimed fastest linux distribution...
I have nothing against investing time in configuring the system myself as long as it has any purpose, but all I can see for now is that gentoo is just as slow as the ubuntu-bloat and a lot slower than vista, and I'm not even going to mention XP64. Is the linux kernel borken? or is a quad core cpu just too much for it? or is 1gb of ddr2 ram not enough for such a "lightweight" system (actually considering the stuff that gets downloaded by portage gentoo is not lightweight at all)?
Or is it just that some applications (nautilus, firefox, exaile, amarok, quodlibet, OO, compiz, gimp, gnome image viewer, portage, gnome panel, xserver, evolution, epiphany etc.) have problems? Not to mention that I get system crashes at least twice a week and application crashes at least twice a day, and that some applications won't even launch? And yes, I have wasted enough time investigating each and every one of them...
Is everybody else too much of an open source (and all that hippie ideology) zealot to realize that most open source applications are a shipload of bugs, or am the only person in the world for whom besides the obvious advantages of customizability and security everything that goes by the name of linux has proven to be the epitome of poor quality software? |
Enjoy Vista. _________________ I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|