Linux2017. 5. 10. 16:49

봐도 모르겠다 -ㅁ-

VIRT는 해당 프로그램에서 사용하는 전체 메모리 용량을 지칭하는 것 같고

(공유 메모리, 스택, 힙, 다이나믹 라이브러리 등등등)

RES는 스왑등에 의해서 내려지고 남은 "실제 물리 메모리에 적재된" 용량을 의미하는 것 같다.


VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it has mapped into itself (for instance the video card’s RAM for the X server), files on disk that have been mapped into it (most notably shared libraries), and memory shared with other processes. VIRT represents how much memory the program is able to access at the present moment.


RES stands for the resident size, which is an accurate representation of how much actual physical memory a process is consuming. (This also corresponds directly to the %MEM column.) This will virtually always be less than the VIRT size, since most programs depend on the C library.


SHR indicates how much of the VIRT size is actually sharable (memory or libraries). In the case of libraries, it does not necessarily mean that the entire library is resident. For example, if a program only uses a few functions in a library, the whole library is mapped and will be counted in VIRT and SHR, but only the parts of the library file containing the functions being used will actually be loaded in and be counted under RES. 

[링크 : http://mugurel.sumanariu.ro/linux/the-difference-among-virt-res-and-shr-in-top-output/]

    [링크 : https://serverfault.com/questions/138427/top-what-does-virtual-memory-size-mean-linux-ubuntu]

'Linux' 카테고리의 다른 글

limits.conf와 ulimit  (0) 2017.08.24
elf 파일에서 컴파일러 버전 알아내기  (0) 2017.06.07
cpulimit 백그라운드 실행 이유  (0) 2017.05.10
wget 로그인 정보 설정  (0) 2017.04.17
원격지 mac address 얻기  (0) 2017.03.13
Posted by 구차니
Linux2017. 5. 10. 16:35

막상 cpu 꾸준히 먹는 놈이 없어서 안해봤는데

오늘 해보니..


cpulimit이 작동되는 동안에만 해당 설정이 적용되고

한번에 뚝! 떨어지는게 아니라 점진적으로 설정값에 수렴을 하는 식으로 내려간다.

그리고 cpulimit을 종료하면 원래 설정대로 cpu를 냠냠 해주신다.


[링크 : http://knight76.tistory.com/entry/cpulimit-cpu-사용량을-정한다]

'Linux' 카테고리의 다른 글

elf 파일에서 컴파일러 버전 알아내기  (0) 2017.06.07
top VIRT?  (0) 2017.05.10
wget 로그인 정보 설정  (0) 2017.04.17
원격지 mac address 얻기  (0) 2017.03.13
리눅스 쉘에서 시리얼 포트로 쓰기  (0) 2017.02.15
Posted by 구차니

우편으로 날아와서

우편에다가 계좌번호 / 주민등록 번호 를 노출시키는게 찜찜해서(만에 하나라는게 있으니)

국민건강보험에 문의글을 남겨두니

062로 전화오네.. ㄷㄷ 본사가 저~~기 아래 있나 -ㅁ-?(찾아보니 전라도 광주)


아무튼 지역관할 보험공단에 팩스를 넣거나

인터넷 상에서 공인인증서 가지고 처리가 가능하다니 이걸로 처리 완료!


"본인부담금 환급금 신청"을 검색

[링크 : http://minwon.nhis.or.kr/menu/retriveMenuSet.xx?menuId=MENU_WBMCA]


바로가기 링크, 가자마자 로그인 페이지이동합니다 팝업 뜸

[링크 : http://minwon.nhis.or.kr/menu/retriveMenuSet.xx?menuId=MENU_WBMCA0502]

Posted by 구차니

결론: 

다시 검색을 해보니 3300명 심층조사

좋게 말하면.. 샘플링을 잘해서 사전선거 1000만명의 치우침을 제외할수 있도록

표본을 잘 뽑아서 나이대 별로 잘 설문조사를 한듯

----

아래는 이불킥 ㅠㅠ




기사의 수치를 그래프로 환산하면 아래와 같은 나이대별 투표수 비율이 나오는데

[링크 : http://v.media.daum.net/v/20170509204503664]


어떤 비율인지 사전투표는 별도 개표하는게 아니니 알수가 없고

사전투표 출구조사도 없으니 알수가 없지만


일반적으로, 사전투표는 젊은이들이 많이 가고 젊은이들은 문재인 지지가 많다고 했는데 << 가정



개표 결과 자체와 1000명 무작위(?) 출구 심층 조사결과가 너무 비슷 하다는 건 이상하다.

이렇게까지 유사하게 나올 수 있는 경우는

"정말 이상적으로 사전투표나 본선거나 비슷한 비율로 했다?"는 수준인데..


+

3300명 출구 심층 조사결과라고 하네.. 사전 투표 1000만명과 헷갈린듯 ㅠㅠ

[링크 : http://blog.naver.com/choo4263/221001928775]

+


가능한건가?



출구조사만을 보면 오히려 문재인 지지자들이 사전선거 보다 본선거를 더 많이 하고

설문에 더 호의적으로 답변에 응했다는 걸까?

[링크 : http://media.daum.net/election/2017/0509/vote/count/] 개표

[링크 : http://media.daum.net/election/2017/0509/vote/expect/] 출구조사



+

유권자 수는 대략 4250명 그중에 단순화 가정으로 0.1%에 몇표가 오가냐를 보면 42500표

2017/05/09 - [개소리 왈왈] - 19대 대선 유권자 수


그런데 50:50이 아닌 55:45나 60:40 으로 가게 되면 최소 100만에서 200만 표가 다르게 되는데 그럴 경우,

(선거는 한번 뿐이니 한쪽에 많이 하게 되면 다음 선거시에 절대인원이 줄어 들수 밖에 없으니,

동일한 비율로 한것이 아니라면 차이점은 배로 차이가 나야 정상)

100만 표면 전체중 2.35% 인데 절대 저정도 오차범위로 나올수가 없을 것 같다.


위의 내용으로 나오는 결론은

사전선거 자체는 지지층의 영향을 받지 않고 투표율만 끌어 올린다 인데.. 이러한 추론이 맞는 건가?

아니면 내가 너무 엄한 음모론을 세우는 걸까?


+

방송3사의 출구조사는 이미 사전선거 결과에 대한 출구조사까지 반영돼 보정된 결과다.

[링크 : http://www.edaily.co.kr/news/NewsRead.edy?SCD=JF11&newsid=02810966615927280...Y]


+

일단 최종(?)정정 및 계산

4250만 유권자 중 77.2% 투표로 3280만명이 투표를 했고

사전투표로 1000만명본선거에서 2280만명이 투표를 함

출구조사는 본선거 2280만명중 3300명에 대해서 수행이 되었으며

샘플링에 따라 1000만명의 유권자 성향이 치우쳤다고 하더라도

충분히 무마되어 전체 선거에 대한 대표값을 추출할 수 있다고 보여짐

Posted by 구차니
파일방2017. 5. 10. 10:54

화학관련해서 시뮬레이션 돌리는 녀석인듯?


[링크 : http://gaussian.com/]

[링크 : https://www.hoffman2.idre.ucla.edu/gaussian/]

[링크 : https://www.hoffman2.idre.ucla.edu/gaussview/]

'파일방' 카테고리의 다른 글

draftsight free 버전  (0) 2017.06.14
코드 라인수 측정 - loc(line of code)  (0) 2017.06.07
ANT+ 프로토콜  (0) 2017.04.11
챗봇 관련 링크  (2) 2017.03.28
openALPR -Automatic License Plate Recognition  (0) 2017.02.28
Posted by 구차니
Posted by 구차니
개소리 왈왈2017. 5. 9. 17:22

선거율이 70% 라고 5시 오후 현재 나오길래

문득 궁금해서 찾아보니 4247만 대충 4350만

대한민국 인구는 5172만

800만의 미성년이 존재하는 나라..

800/5172 = 15.46%

흐음.. 미성년자가 무지 적다고 느껴지네..



행정자치부는 제19대 대통령선거 선거인명부 확정 결과, 유권자가 총 4247만9710명으로 집계됐다고 28일 밝혔다.

[링크 : http://www.huffingtonpost.kr/2017/04/28/story_n_16306790.html]


행정기관2017년04월
총인구수세대수세대당인구남자인구수여자인구수남여비율
전국51,722,90321,402,0622.42 25,836,516 25,886,387 1.00 

[링크 : http://rcps.egov.go.kr:8081/jsp/stat/ppl_stat_jf.jsp]

'개소리 왈왈' 카테고리의 다른 글

안녕 01410  (8) 2017.06.30
조현아 vs 탑  (0) 2017.06.09
잘 지내고 있냐 후배야  (2) 2017.04.06
대전 현충원 안장자 검색  (0) 2017.01.07
경기가 안좋긴 하나보네  (0) 2016.12.10
Posted by 구차니

mysql client로 콘솔에서 접속해서 보니..

걍.. table로 나온다.


mysql> show tables;

+-------------------+

| Tables_in_archlog |

+-------------------+

| account_bank      |

| account_periodic  |

| account_withdraw  |

| arch_article      |

| arch_blobs        |

| arch_refer        |

| arch_rel          |

| arch_reply        |

| arch_user         |

| org_detail        |

| org_rel           |

| organization      |

| people_detail     |

| people_rel        |

+-------------------+

14 rows in set (0.00 sec) 


mysql> desc organization;

+---------------+-----------+------+-----+---------+-------+

| Field         | Type      | Null | Key | Default | Extra |

+---------------+-----------+------+-----+---------+-------+

| idx           | int(11)   | NO   |     | 0       |       |

| name_kr       | char(50)  | YES  |     | NULL    |       |

| name_en       | char(30)  | YES  |     | NULL    |       |

| address       | char(200) | YES  |     | NULL    |       |

| call_1        | char(30)  | YES  |     | NULL    |       |

| fax           | char(30)  | YES  |     | NULL    |       |

| web           | char(50)  | YES  |     | NULL    |       |

| certification | char(20)  | YES  |     | NULL    |       |

| time_create   | datetime  | YES  |     | NULL    |       |

+---------------+-----------+------+-----+---------+-------+

9 rows in set (0.01 sec)


그나저나 저 \G의 차이가 크게 나오네..

mysql> show create view organization\G

얘는 걍.. +--- 이런거 도배 됨

mysql> show create view organization; 

[링크 : https://dev.mysql.com/doc/refman/5.7/en/show-create-view.html]


\g는 vertical output 인가?

--auto-vertical-output

Cause result sets to be displayed vertically if they are too wide for the current window, and using normal tabular format otherwise. (This applies to statements terminated by ; or \G.) 

[링크 : https://dev.mysql.com/doc/refman/5.7/en/mysql-command-options.html]



+

full 하나 넣어주니 깔끔하게 구분이 되는군!

mysql> show full tables;

+-------------------+------------+

| Tables_in_archlog | Table_type |

+-------------------+------------+

| account_bank      | BASE TABLE |

| account_periodic  | BASE TABLE |

| account_withdraw  | BASE TABLE |

| arch_article      | BASE TABLE |

| arch_blobs        | BASE TABLE |

| arch_refer        | BASE TABLE |

| arch_rel          | BASE TABLE |

| arch_reply        | BASE TABLE |

| arch_user         | BASE TABLE |

| org_detail        | BASE TABLE |

| org_rel           | BASE TABLE |

| organization      | VIEW       |

| people_detail     | BASE TABLE |

| people_rel        | BASE TABLE |

+-------------------+------------+

14 rows in set (0.01 sec) 

[링크 : https://dev.mysql.com/doc/refman/5.7/en/show-tables.html]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

Mariadb root access denied  (0) 2018.04.19
mysql sql문 변수 사용  (0) 2017.05.20
db varchar 와 char  (0) 2017.05.09
db에 mac / ip 저장하기(자료형)  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
Posted by 구차니

char은 고정

varchar는 가변


다만, char의 경우 길이보다 짧게 입력시 공백으로 처리되어

equals로 비교시 같지 않다고 나오기에 trim()을 해주어야 한다는데 어쩌구 저쩌구


결론은.. 걍 유지보수 편하게 varchar로 대동단결? 이라는 건데

음.. varchar로 구성된 테이블 하나 두고 하나만 파편화 시키는 것도 방법이 되려나?


[링크 : https://okky.kr/article/217655]

[링크 : https://okky.kr/article/256528]

[링크 : http://database.sarang.net/?inc=read&aid=16220&criteria=mysql...page=16]

[링크 : http://dreamchallenger.blogspot.com/2011/07/char-varchar.html]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql sql문 변수 사용  (0) 2017.05.20
mysql view 출력 그리고 내용확인  (0) 2017.05.09
db에 mac / ip 저장하기(자료형)  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
mysql view  (0) 2017.03.14
Posted by 구차니

MAC은 대개 48bit(8x6) 인데 일부에서는(인피니밴드) 8byte까지 늘어나는 듯

그리고 ip는 IPv4 기준 32bit 니까 int로도 충분은 한데...


쿼리 문에서는 HEX로 변환해주고

[링크 : https://dev.mysql.com/doc/refman/5.7/en/hexadecimal-literals.html]


php에서는 base_convert()를 이용해서 값을 변환해서 비교하는 듯?

[링크 : http://php.net/manual/en/function.base-convert.php]



[링크 : http://stackoverflow.com/questions/4514547/mysql-best-way-to-store-mac-addresses]

[링크 : http://www.onurguzel.com/storing-mac-address-in-a-mysql-database/]

[링크 : http://bryan.wiki/34]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql view 출력 그리고 내용확인  (0) 2017.05.09
db varchar 와 char  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
mysql view  (0) 2017.03.14
db designer  (0) 2017.03.14
Posted by 구차니