Posted on 2011/04/11 15:51
Filed Under OS/Linux

Site Link : http://sheringeorge.co.cc/articles/free--m-command-in-linux

free -m command in Linux

free -m is the most commonly used command to view memory usage in Linux. Output of free -m will look like this.

===============================================
-bash-3.2# free -m
                    total       used       free     shared    buffers     cached
Mem:           512        503          8          0         17        166
-/+ buffers/cache:       318       193
Swap:          511         95         416
================================================

Interpreting the output of free -m

As we can see, there are three rows Mem, buffers/cache & Swap.

(i) Mem:
  • 512 given under "total" indicates total 512MB of memory available in the server.
  • 503 given under "used" indicates current RAM usage. This number will be a number close to total RAM almost always since Linux will try to utilize spare memory to cache disk data.
  • 8 given under "free" is the amount of free memory available in the system.
  • 0 given under "shared" is the amount of memory shared between processes.
  • 17 given under "buffers" is the memory used for IO buffer.
  • 166 given under "cached" is the memory used for caching disk data.

(ii) buffers/cache
  • 318 given under "used" indicates memory used by running applications
  • 193 given under "free" is the total reclaimable memory. As I said earlier, Linux will try to utilize spare memory to cache disk data. But this memory used for cache can be very easily reclaimed by the OS for applications. Reclaimable memory will be roughly equal to buffers+cached+free, that is 17+166+8

(iii)Swap:
  • 511 given under "total" is total swap memory available in server.
  • 95  given under "used" is total swap memory used
  • 416 given under "free" is free swap memory available in server.

How it is calculated


Physically Used Memory = Actual used memory + buffers + cache = 318+17+166 = 501MB
Physically Free Memory = Total Physical Memory - Actual used memory - buffers - cache = 512-318-17-166 = 11MB
Memory free for Applications = Total Physical Memory - Actual used memory = 512-318 = 194MB
Memory used  by Applications = Physically Used Memory - buffers - cache = 501-17-166 = 318MB
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기
2011/04/11 15:51 2011/04/11 15:51


Posted on 2011/03/29 16:40
Filed Under OS/Linux

site link : http://www.pcworld.com/businesscenter/article/210966/tiny_linux_kernel_patch_delivers_huge_speed_boost.html?tk=twt_linuxline

Tiny Linux Kernel Patch Delivers Huge Speed Boost



What a difference 233 lines of code can make.

That's the size of a small new patch to the Linux kernel's scheduler that has been found to reduce the average latency of the desktop by about 60 times. It's a small patch with a really, really big gain for desktop users of the open source operating system, in other words.

Though not yet merged into the mainline kernel, the new patch--written by Linux kernel developer Mike Galbraith--has already received high praise from Linux creator Linus Torvalds himself.

"I have to say that I'm (very happily) surprised by just how small that patch really ends up being, and how it's not intrusive or ugly either," Torvalds wrote Monday in an e-mail. "I'm also very happy with just what it does to interactive performance.... It is a _huge_ improvement."

Web pages, in particular, load "a lot faster" following the patch, Torvalds noted. "I think this is firmly one of those ‘real improvement' patches. Good job. Group scheduling goes from ‘useful for some specific server loads' to ‘that's a killer feature'."

60 Times Faster

Essentially, the patch works by automatically creating task groups per TTY--or input/output device--so as to improve desktop interactivity under heavy loads. The feature is enabled from boot by default, but it can be turned on or off on the fly.

In tests by Galbraith, the patch reportedly produced a drop in the maximum latency of more than 10 times and in the average latency of the desktop by about 60 times. Though the merge window is now closed for the Linux 2.6.37 kernel, the new patch should make it into version 2.6.38.

Two contrasting videos on Phoronix demonstrate the difference the patch makes.

The New Speed Demon

Linux has just recently made a round of fresh headlines for its stellar performance on supercomputers--the current leader in that race runs the open source operating system, for example, as do the majority of the top 500.

But it's especially exciting to see such speed advantages coming to the desktop. Soon, not only will Linux deliver superior security, reliability and numerous other advantages, but it will be a speed demon as well. For businesses, in particular, that's a combination that will be hard to beat.

Follow Katherine Noyes on Twitter: @Noyesk.


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기
2011/03/29 16:40 2011/03/29 16:40


Posted on 2010/08/27 16:29
Filed Under OS/Linux

RHEL5 기준.
Package : tzdata

기존 /etc/localtime 은 OS Install 시 설정한 timezone 으로 되있을 것이다.
만약 GMT0 혹은 특정 timezone 으로 설정을 원한다면 /usr/share/zoneinfo 의 해당 파일로 값을 바꾸면 된다.

GMT0 같은경우 /usr/share/zoneinfo/GMT0 -> /etc/localtime 로 변경
ex) cp /usr/share/zoneinfo/GMT0 /etc/localtime

변경 후 GMT0 시간 과 우리나라 시간 기준으로 확인 해 본다.

그 외에도 각 지역의 GMT 시간으로 마춰 줄 수 있다.


덧1, ntp 는 하나의 기준값(GMT0) 일 뿐이다. 그 값에 timezone 를 할당 해 줌으로서 해당 지역의 시간을 표시 해 준다.
고로 꼭 그 나라의 ntp 를 고집할 필요는 없다.
 
덧2, 그리니치 시간 확인 : http://wwp.greenwichmeantime.com/
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기
2010/08/27 16:29 2010/08/27 16:29


Posted on 2010/07/29 17:30
Filed Under OS/Linux

Site Link : http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html


각 유틸리티를 활용한 시스템 Resource Monitor 하기...

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기
2010/07/29 17:30 2010/07/29 17:30


Posted on 2009/07/02 09:52
Filed Under OS/Linux






퍼온곳 : http://coffeenix.net/board_view.php?cata_code=5&bd_code=91&bpage=
출처 : sec-info 메일링 리스트

---------------------------------------------------------------------
Re: ping, arp, dns관련하여
날짜: Thu, 24 Jul 2003 16:20:59 +0900
보낸이: "Sukbum Hong" <antihong@tt.co.kr>
받는이: "i" <imalcol@mail.affis.or.kr>, <sec-info@cert.certcc.or.kr>

안녕하십니까?

오늘과내일의 홍석범입니다.

#### ping 과 DNS 에 대해

시스템에 따라 ping 은 Reverse lookup 을 실행합니다.
(참고로 Reverse lookup(역질의) 이란 IP 를 호스트이름으로 변경하는 것을 뜻합니다.)
따라서 10.10.10.6 으로 ping 을 하였을 경우 이 IP 를 호스트 이름으로 변경하려는
시도를 하게 되고, 결국 최상위 root DNS 서버로부터 결과를 찾아가게 됩니다.  
그러나 10.10.10.6 은 사설 IP 이므로 어떤 DNS 서버도 이 IP 에 대한
위임 권한을 갖고 있지 않기 때문에 결국은 timeout 이 될 때까지 대기한 후에야
Reverse lookup 을 포기하고 역질의 없이 해당 IP 로 ping 을 시도하게 되는 것입니다.
말씀하신 57초가 바로 DNS 의 timeout 시간이라 할 수 있습니다.

이를 위해서는 다음과 같이 할 수 있습니다.

* -n 옵션 이용
ping -n 10.10.10.6 와 같이 -n 옵션을 이용하면 reverse lookup 을 시행하지 않습니다.

* /etc/hosts 이용
/etc/hosts 는 일종의 소형 DNS 라고 생각하시면 됩니다.
/etc/hosts 에 해당 IP 를 정의해 주면 역질의를 하지 않습니다.

* /etc/named.conf 이용
/etc/named.conf 에 10.10.10.0/8 대역에 대해 위임 권한을 지정해 주면
최상위 root DNS 서버까지 reverse lookup 을 하지 않게 됩니다.


#### arp 와 DNS 에 대해

arp -a 를 실행하였을 때의 결과를 보면 쉽게 이해할 수 있습니다.

# arp -a
? (192.168.1.246) at 00:D0:B7:9A:25:20 [ether] on eth0
? (192.168.1.191) at 00:D0:B7:88:E8:0D [ether] on eth0
webserver (192.168.1.45) at 00:01:02:54:C2:E7 [ether] on eth0
? (192.168.1.102) at <incomplete> on eth0

여기에서 eth0 인터페이스를 통해 192.168.1.246 의 MAC 주소는 00:D0:B7:9A:25:20,
192.168.1.191의 MAC 주소는 00:D0:B7:88:E8:0D 라는 것을 알 수 있습니다.
그런데, 제일 앞 부분이 다른 3줄은  ? 으로 되어 있는데, 세 번째줄만 ? 대신
webserver 라고 되어 있습니다.  
이 차이점은 ? 은 각각의 IP 주소에 대해 역질의(reverse lookup)를 했는데,
해당하는 호스트 이름이 존재하지 않아 ? 로 표시된 것이고 192.168.1.45의 경우
역질의한 값이  webserver 로 존재하여 위와 같이 표현된 것입니다.

참고가 되셨기를 바랍니다.


감사합니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/07/02 09:52 2009/07/02 09:52


Posted on 2009/06/24 22:31
Filed Under OS/Linux

흠... 조만간 ext4 파일시스템이 대중화 될 것 같네요...

뭐... 시기도 이쯤이면 되지 않았을까 싶구요...

기존에 문제시 되었던 부분이 ext4 에선 만이 보완이 된듯 하네요

xfs, jfs 의 일부 기능들이 ext4에 포함이 되었다고 합니다.

관련 내용은 링크를 따라가 보세요

링크 : http://www.ibm.com/developerworks/kr/library/l-anatomy-ext4/index.html

덧 .
가능성이라고 한다면 RHEL5 update 4 에 포함될 가능성도...  ( ㅡ.ㅡ 추측 )
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/06/24 22:31 2009/06/24 22:31


Posted on 2009/05/14 11:09
Filed Under OS/Linux


리눅스 배포판 현황 : http://distrowatch.com/
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/05/14 11:09 2009/05/14 11:09


Posted on 2009/04/05 01:16
Filed Under OS/Linux

https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.2/pdf/Deployment_Guide/Deployment_Guide.pdf
Chapter 20
295 페이지


rhel4.5 samba
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/System_Administration_Guide/Samba.html


http://blog.naver.com/hellforever?Redirect=Log&logNo=130032738029


http://blog.naver.com/rukill?Redirect=Log&logNo=30031435054


http://www.linuxtopia.org/online_books/centos_linux_guides/centos_enterprise_linux_sysadmin_guide/s1-samba-configuring.html

system-config-samba 에서 samba 사용자가 안 보일경우 smbpasswd 파일을 만들어주고 smb.conf 에서 해당 옵션을 해제 해줘야 된다.
#       passdb backend = tdbsam
;       passdb backend = smbpasswd


samba faq
http://www.faqs.org/docs/securing/chap29sec284.html


asianux pdf
http://www.asianux.co.kr/documents/manual/AXS3-server.service-samba.server.pdf



크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/04/05 01:16 2009/04/05 01:16


Posted on 2009/04/01 14:16
Filed Under OS/Linux

ntp 는 기본적으로 릴레이 형식을 가지고 있다.

내가 목표 서버와  ntp sync 가 되면 나도 누군가에게 ntp sync 를 시켜줄 수 있는 형식이다.

설정은 특별한 것이 없으며

설정 적용후 ntpq -p 으로 확인할때 "*" 가 붙으면 그 때 부터 Client 에 대한 sync 가 가능하다.

ex)
# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 LOCAL(0)        .LOCL.          10 l   10   64   77    0.000    0.000   0.002
+zero.bora.net   124.216.255.238  4 u   11   64   77   16.794  -10593.  59.196
*ntp1.epidc.co.k 192.168.18.6     2 u    8   64   77   16.276  -10594.   2.006
+ntp2.epidc.co.k 192.168.18.10    2 u   10   64   77   16.157  -10595.   0.610

또는 sync 받을 수 있는 ntp 서버가 없고 로컬??? 로만 ntp 서버를 설정 할경우 아래의 옵션 중에 선택을 하여 확성화 시켜준다.

#broadcast 192.168.10.255 key 42                # broadcast server
#broadcast 224.0.1.1 key 42             # multicast server
#manycastserver 239.255.254.254         # manycast server

설정 적용후 ntpq -p 으로 확인할때 "*" 가 붙으면 그 때 부터 Client 에 대한 sync 가 가능하다.

ex)
# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 NTP.MCAST.NET   .MCST.          16 u    -   64    0    0.000    0.000   0.001
*LOCAL(0)        .LOCL.          10 l   12   64   17    0.000    0.000   0.001


* 추가1
리눅스쪽에선 문제가 없지만 윈도우??? 계열에선 사설 IP로 타임 서버를 지정 할경우 DNS Revers 관련하여 sync 가 되지 않는다.
이럴 경우 C:\WINDOWS\system32\drivers\etc 의 hosts 파일에 해당 ip 의 hostname 을 지정하고 해당 hostname 으로 타임서버 주소를 지정해 주면 된다.

* 추가2 
sync 상태
* 는 현재 sync 를 받고 있음을 의미하며 
+ ntp 접속은 가능하지만 sync 를 하고 있지는 않음을 의미
- ntp 접속은 가능하지만 sync 가능 리스트에서 제외 된 경우
blank 또는 INIT 는 접속이 불가능함을 의미합니다.
이외에 .(dot) 또는 # 등의 기호가 나올 경우엔 기다리시거나 의미를 두지 않아도 됨.

* 추가 3
site link : http://www.meinberg.de/english/info/ntp.htm
site link : http://www.pool.ntp.org/ko/use.html

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/04/01 14:16 2009/04/01 14:16


Posted on 2009/03/29 13:12
Filed Under OS/Linux

CentOS 5.3 기준 에서 제거된 또는 변경된 RHEL 5.3 패키지 리스트


  • redhat-release-5Client-5.3.0.3.i386.rpm
  • redhat-release-5Server-5.3.0.3.i386.rpm
  • redhat-release-notes-5Client-25.i386.rpm
  • redhat-release-notes-5Server-25.i386.rpm
  • rhel-instnum-1.0.9-1.el5.noarch.rpm
  • rhn-check-0.4.19-17.el5.noarch.rpm
  • rhn-client-tools-0.4.19-17.el5.noarch.rpm
  • rhnlib-2.2.6-2.el5.noarch.rpm
  • rhnsd-4.6.1-1.el5.i386.rpm
  • rhn-setup-0.4.19-17.el5.noarch.rpm
  • rhn-setup-gnome-0.4.19-17.el5.noarch.rpm
  • yum-rhn-plugin-0.5.3-30.el5.noarch.rpm


    출처 : http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.3/Korean#head-edd7956bcddebc4d2de1adc8603b9c278384a6d3

  • ps. 사실 위 패키지들은  Red Hat 상표권 관련 패키지라고 봐야겠죠???
  • 크리에이티브 커먼즈 라이센스
    Creative Commons License
    이올린에 북마크하기(0) 이올린에 추천하기(0)
    2009/03/29 13:12 2009/03/29 13:12


    About

    by 삐꾸강아쥐

    Counter

    · Total
    : 138028
    · Today
    : 4
    · Yesterday
    : 155
    블로그코리아에 블UP하기