Do you need more memory?

| | Comments (6) | Trackbacks (0)

Many people wonder if they need more memry on their Linux desktop/Server, well, answer to this question is much simpler than it seems.

 

You need more memory IF:

  1. Your machine is Actually Swapping
  2. You are going to host your VT guest on memory (its not as bad as it look like)


Memory typically wont cause your system to be any more Faster, make your webserver any better or anything else, since a swapping server machine is dead machine you can say more memory is good is the way that it causes bad thing to not happen soon.

 

But my memory is Already 100% Full!

well, first of all i have to repeat that you don't need memory if you don't swap, linux Virtual Memory subsystem makes use of 'Unused' memory as 'Memory Cache' for popular Filesystem objects, so when ever you are going to calculate how much memory your Linux system is exactly using you need to exclude 'Cached' amount.

 

Memory is Cheap, Memory is Fast

and I mean FAST, specially when comparing to normal SATA disks, simple hdparam benchmark shows:

Timing buffered disk reads:  174 MB in  3.02 seconds =  57.63 MB/sec
Timing buffered disk reads:  174 MB in  0.05 seconds = 338.85 MB/sec

 

You do really have lots of data that you can store on ramfs, you just don't know ;)

 

Love your customers

| | Add comment | Trackbacks (0)

My dentist always used to inform me on every detail of what hes going to do, i cant understand half of that and other half scares me but i do always appreciate it !

 

Openmoko IS NOT Dead

| | Add comment | Trackbacks (0)

Acording to Slashdot;

Some bloggers have been misinterpreting a presentation by Openmoko CEO, Sean Moss-Pultz last week in Switzerland to think that the company is getting out of the phone business. That's not true. In fact, the Openmoko FreeRunner (their current model) is alive and well. (Also in Switzerland, Sean announced another project — not a phone — that they are calling 'Project B.' No details yet.) The next version of the phone, codenamed GTA03, has been suspended and there were some associated layoffs, but the GTA03 was in constant flux as a design. So the company is being prudent and focusing on the FreeRunner which has lots of open source community and most recently, embedded developer support.

 

Its been a while since ive got an hp pavilion ze4200 laptop with a cool agp card called IGP320M , which are used on many laptops ( specially HP and Compaq ) , I thought its impossible to get a working 3d rendering with it under Linux and X ( I just have tried Xorg ) .

 (More)

Tungsten T5 Linux HowTo

| | Comments (1) | Trackbacks (0)
T5 is must popular and powerful ( as well as expensive ) series of Palm tungsten products , got some cool features like Drivemode ( usb mass storage ) ppp and vpn compatibility and others that i can't remember , but after all ( like any other expensive toys on market ) its a bit kind tricky under Linux , i have searched all over the net to find some sort of howto in this regards and there were nothing there , it takes 15 hour hard work to get use all features of Tungsten T5 .
 (More)

FreeRadius Online Users MRTG Not over SNMP

| | Comments (2) | Trackbacks (0)

FreeRadius Online Users MRTG Not over SNMP


it was a long time since i was looking for some MRTG Diagram for Users who are On line at our FreeRadius radius system , The FreeRadius maintainer Alan Dekok says that FreeRadius SNMP subsystem have no support for exporting On line users , little search on FreeRadius users list shows that a lot of other users have the same problem , well , this document describe how you can have MRTG of your on line users .

i was running Mysql as database and FreeRadius 1.0.5 as server .

well , MRTG is some sort of cool software , using it isn't that kind of hard that you might imagine , in fact its really easy to create some (easy) Custom Graphs with MRTG .

for this to work you need MRTG installed , not that we are not going to use SNMP at anyway . also note that this document describe using MRTG and Mysql database server , the very little application that i wrote can be tweaked a bit to work over Postgres and other databases .

first we need this little application , you can copy paste or optimize it somehow ( FIXME : always shown +1 on line user ) and put it under /usr/bin/radmrtg for example :


#!/bin/bash
mysql radius -e "select username from radacct where AcctTerminateCause like '';" | wc -l
mysql radius -e "select * from radacct where AcctTerminateCause like '' and Username not like '%@%';" | wc -l
uptime
echo "FreeRadius"


NOTE: the second mysql line just separate Real Users , you can comment or remove that line if you did not have any realm or you have no care about it , just cut of the second line


and your /etc/MRTG.conf must look like this :

######################################################################
# Multi Router Traffic Grapher -- Sample Configuration File
######################################################################
# This file is for use with MRTG-2.5.4c

# Global configuration
WorkDir: /var/www/admin/dialup_admin/htdocs/MRTG
WriteExpires: Yes


Target[load]: `/usr/bin/radmrtg`
MaxBytes[load]: 130
Title[load]: Online Users
WithPeak[load]: wmy
PageTop[load]: Online Users
Options[load]: growright, gauge, nopercent, unknaszero
YLegend[load]: Load
ShortLegend[load]: ;
LegendI[load]: Total Users:
LegendO[load]: Realm Users:


you see that "Target[load]: `/usr/bin/radmrtg`" Line ? The secret of MRTG Custom Graphs lies in this line ;)
now run MRTG , give it a few minute and it will work , as expected .

please , if you have any sort of comment ( specially in patch form ;) ) shot a comment here .

rUSBer

| | Comments (1) | Trackbacks (0)
rUSBer , the Router Replacement USB ;

rUSBer Is Emergency LiveUSB with aim to be replacement for Main Router Hardware/Linux box on Networks with all of kernel 2.6 Shaping/Scheduling and etc features . the idea is that to create some 80-100 megabyte Image to easy can be write on USBdevices and get the LiveUSB work as main router , the main idea is simple , put all Hardcore Network related tools ( tc , ip , tcpdump and stuff ) as network administrator i was always feel the lack good router replacement tool , you know , something you can just put and let it work , also its great that this kind of simple ( and fast because of USB ) devices can replace Hard damage , Stolen Cisco Router(!) and etc ! :)

first i was planing to put project on SF but after a while ( well , SF start to get slow and look like CNET! ) i believe that Berlios is far more better choose , well , right now Berlios supports SVN and other cool stuff and as far as i can remember SF still is Unable to provide SVN services , after all i will let Zoollinux to remain on SF and I'm gonna put rUSBer on Berlios , homepages will be at Zoup.org using MediaWiki ( i know the issue with zool site !)

SarPplot

| | Add comment | Trackbacks (0)

SarPplot 1.0.0 released;

SarPplot simple application which takes output of atsar application and put it
into Gnuplot config files , kind of useful on server boxes for performance
analyze

you can find some samples here :

http://zoup.org/my_projects/sarpplot/images/


the output is Png , and SarPplot provide analyze for :

cpu (Separated for cpu + total )
process load
disk (plot per disk)
disk-partition (plot per partition)
memory & swap
paging & swapping
interrupts
kernel-resources
tty activity
net-interf (general) (plot for each nic)
net-interf (errors) (plot for each nic)
ip v4 (general)
ip v4 (errors)
tcp v4 (general)
tcp v4 (errors)
udp v4
icmp v4 (general)
icmp v4 (per type)
nfs (general)
nfs (errors)
nfs (server)
nfs-rpc (%calls)

 (More)

Yong 1.2

| | Add comment | Trackbacks (0)

Yong 1.2 Released

http://yong.berlios.de/

Palm Tungsten T5 PPP Gprs connection howto

| | Comments (1) | Trackbacks (0)
this topic is not much of “Foss” but im going to give you some notes on How to do it .
it fairly simple and you probably will not have any trouble if your provider Is listed on your palm , but what if its not ?

well this document will solve that kind of problem ;)
there are few thing that you need to do first .


1 > Update Palm rom and install palm Phonelink update.
2 > Pair the devices ( your cell phone and Palm ).
3 > Make a new connection to phone you paired via bluetooth
4 > Make new connection , go to details and write down this script :
SEND: AT&FX1E0V1
Send CR
Send CR
Send: AT+CGDCONT=1,IP,mtnirancell;
Send CR ATDT*99***1#
Send CR
Wait For: CONNECT
End

get out and select connect .


note that you have to change APN (mtnirancell) to your own Provider apn name .

Good old Idle root

| | Comments (1) | Trackbacks (0)

#who

USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

root pts/1 XX.XXX.XXX.X 06Jan80 10383days 0.08s 0.08s -bash

 

SRE

| | Add comment | Trackbacks (0)

I have receive job offer from google's Site Reliability Engineering (SRE) .

still thinking about it ...

Tue Jul 17 13:37:30 IRST 2007 : UPDATED :

well , it seems lees likely to happen because of Family related problems , still got one year anyway ;)

Happy SysAdmins day!

| | Comments (1) | Trackbacks (0)

XPS 1330 Modem Linux support

| | Comments (1) | Trackbacks (0)

Dell XPS m1330 uses external USB which is not supported by by Linux , heres my patch to get modem Working on linux .

Bugzilla Patch page

XPS m1330 Webcam under linux

| | Comments (1) | Trackbacks (0)

webcam is not supported by kernel yet , get uvc driver from here .


XPS 1330 Soundcard support

| | Add comment | Trackbacks (0)

You will notice that XPS 1330 intel HDA is not working under linux , you need to load snd-hda-intel module as 3stack model ,

echo options snd-hda-intel model=3stack > /etc/modprobe.d/sound

 

Seems like a problem

| | Comments (1) | Trackbacks (0)
debian login: root
Password:
Linux debian 2.6.24 #3 SMP Thu Feb 21 19:31:23 IRST 2008 i686

26961 failures since last login.

The truth, as always, will be far stranger

| | Comments (1) | Trackbacks (0)

The only way of discovering the limits of the possible is to venture a little way past them into the impossible.


 (More)

We'll make it work!

| | Add comment | Trackbacks (0)

Old 'The Blog and Maximum Liunx'

| | Comments (1) | Trackbacks (0)

its was quite a surprise for me , i had this weblog like 7 years know , wow! 

 

My blog back in

2001-2002 : http://zoup.persianblog.ir/

2002-2004 : http://web.archive.org/web/20031225203457/http://weblog.zoup.org/

2004-2005 : http://web.archive.org/web/20041212165105/http://weblog.zoup.org/

2005-2006 : http://web.archive.org/web/20051219172801/http://weblog.zoup.org/

2006-2007 : http://web.archive.org/web/20060903214448/http://weblog.zoup.org/

 

after that , since i did remove 'weblog' subdomain , archive.org didnt made any caching , i need to fix that! ;)

 UPDATE :

well , subdomain fixed , there are even older posts here :

http://web.archive.org/web/20021012095206/http://zoup.persianblog.com/

 

GPS

| | Add comment | Trackbacks (0)

Got GPS working with Free Runner ;)

 (More)

MCI Gprs

| | Comments (2) | Trackbacks (0)

As you know , MCI Gprs Have been launched their GPRS service today , and you might remember that i had these set of scripts to get GPRS connection under linux using MTR iranCell ,

These are updated set of scripts to make connection to MCI Gprs possible under linux .

 http://zoup.org/my_projects/gprs_ppp.tar.gz

 

Free running

| | Comments (1) | Trackbacks (0)

a week ago i have received my Freerunner Which was a gift from good friend of mine , Dr.mohammad khansari and foss.ir , while im not really man of 'smart phones' i do really liked this phone .

 its slow , sluggish and Great ;)

 

Good and busy friend of mine

| | Comments (1) | Trackbacks (0)
07:28:08 up  5:10,  4 users,  load average: 923.83, 2828.25, 2609.70